|
@@ -315,7 +315,7 @@ export default {
|
|
baseInfoForm: {
|
|
baseInfoForm: {
|
|
warehouseId: '',
|
|
warehouseId: '',
|
|
warehouseName: '',
|
|
warehouseName: '',
|
|
- compId: '',
|
|
|
|
|
|
+ compId: this.$route.query.compId,
|
|
goodsNameKey: '',
|
|
goodsNameKey: '',
|
|
goodsName: '',
|
|
goodsName: '',
|
|
waterBase: '',
|
|
waterBase: '',
|
|
@@ -345,7 +345,6 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
activated() {
|
|
activated() {
|
|
- debugger
|
|
|
|
|
|
|
|
console.log(this.$route.query.type)
|
|
console.log(this.$route.query.type)
|
|
// 货名
|
|
// 货名
|
|
@@ -427,7 +426,7 @@ export default {
|
|
this.baseInfoForm = {
|
|
this.baseInfoForm = {
|
|
warehouseId: '',
|
|
warehouseId: '',
|
|
warehouseName: '',
|
|
warehouseName: '',
|
|
- compId: '',
|
|
|
|
|
|
+ compId: this.$route.query.compId,
|
|
goodsNameKey: '',
|
|
goodsNameKey: '',
|
|
goodsName: '',
|
|
goodsName: '',
|
|
waterBase: '',
|
|
waterBase: '',
|
|
@@ -522,7 +521,7 @@ export default {
|
|
this.baseInfoForm.bulkDensityStandard = 1
|
|
this.baseInfoForm.bulkDensityStandard = 1
|
|
}else{
|
|
}else{
|
|
this.isSolidFood = false
|
|
this.isSolidFood = false
|
|
- this.baseInfoForm.bulkDensityStandard = ""
|
|
|
|
|
|
+ this.baseInfoForm.bulkDensityStandard = ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onCloseGoodSelect() {
|
|
onCloseGoodSelect() {
|
|
@@ -550,7 +549,7 @@ export default {
|
|
this.baseInfoForm.bulkDensityStandard = 1
|
|
this.baseInfoForm.bulkDensityStandard = 1
|
|
}else{
|
|
}else{
|
|
this.isSolidFood = false
|
|
this.isSolidFood = false
|
|
- this.baseInfoForm.bulkDensityStandard = ""
|
|
|
|
|
|
+ this.baseInfoForm.bulkDensityStandard = ''
|
|
}
|
|
}
|
|
// if (this.selectVal == '玉米淀粉' ||
|
|
// if (this.selectVal == '玉米淀粉' ||
|
|
// this.selectVal == '玉米(机收)' ||
|
|
// this.selectVal == '玉米(机收)' ||
|
|
@@ -596,7 +595,7 @@ export default {
|
|
//防止填完数据 后切换货名不清空多余数据
|
|
//防止填完数据 后切换货名不清空多余数据
|
|
warehouseId: '',
|
|
warehouseId: '',
|
|
warehouseName: '',
|
|
warehouseName: '',
|
|
- compId: '',
|
|
|
|
|
|
+ compId: this.$route.query.compId,
|
|
goodsNameKey: '',
|
|
goodsNameKey: '',
|
|
goodsName: '',
|
|
goodsName: '',
|
|
waterBase: '',
|
|
waterBase: '',
|
|
@@ -627,7 +626,7 @@ export default {
|
|
this.baseInfoForm.compId = this.$route.query.compId
|
|
this.baseInfoForm.compId = this.$route.query.compId
|
|
this.baseInfoForm.bulkDensityStandard = 1
|
|
this.baseInfoForm.bulkDensityStandard = 1
|
|
}else{
|
|
}else{
|
|
- this.baseInfoForm.bulkDensityStandard = ""
|
|
|
|
|
|
+ this.baseInfoForm.bulkDensityStandard = ''
|
|
}
|
|
}
|
|
for (let num = 0; num < this.goodnameList.length; num++) {
|
|
for (let num = 0; num < this.goodnameList.length; num++) {
|
|
if (e == this.goodnameList[num].constValue) {
|
|
if (e == this.goodnameList[num].constValue) {
|
|
@@ -699,12 +698,12 @@ export default {
|
|
// 增加分界
|
|
// 增加分界
|
|
add(item, item1, index) {
|
|
add(item, item1, index) {
|
|
let _data = this.detailList;
|
|
let _data = this.detailList;
|
|
- if (item.index > 2) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '最多插入3个分界值',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
|
|
+ // if (item.index > 2) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '最多插入3个分界值',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // } else {
|
|
item.index++
|
|
item.index++
|
|
item.detailList.splice(index + 1, 0, {
|
|
item.detailList.splice(index + 1, 0, {
|
|
name: '分界',
|
|
name: '分界',
|
|
@@ -718,7 +717,7 @@ export default {
|
|
type: 4,
|
|
type: 4,
|
|
})
|
|
})
|
|
this.makeSpliceIndex(item, item1, index)
|
|
this.makeSpliceIndex(item, item1, index)
|
|
- }
|
|
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
// 减少分界
|
|
// 减少分界
|
|
reduce(item, item1, index) {
|
|
reduce(item, item1, index) {
|