|
@@ -377,10 +377,11 @@ export default {
|
|
|
this.baseInfoForm.bulkDensityStandard = ''
|
|
|
}
|
|
|
this.baseInfoForm.goodsNameKey = response[0].constKey
|
|
|
- } else {
|
|
|
+ } else{
|
|
|
this.goodnameList = _list
|
|
|
if (_list.length != 0) {
|
|
|
this.selectVal = _list[0].constValue
|
|
|
+ // this.selectVal = _goodsNameList[0]
|
|
|
if (this.selectVal == '玉米淀粉' ||
|
|
|
this.selectVal == '玉米(机收)' ||
|
|
|
this.selectVal == '玉米(酒精)' ||
|
|
@@ -514,9 +515,24 @@ export default {
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.baseInfoForm = response
|
|
|
+ this.selectVal = this.baseInfoForm.goodsName
|
|
|
//构造查看priceList数据
|
|
|
this.priceList = []
|
|
|
this.makeLookPriceList()
|
|
|
+ if (this.selectVal == '玉米淀粉' ||
|
|
|
+ this.selectVal == '玉米(机收)' ||
|
|
|
+ this.selectVal == '玉米(酒精)' ||
|
|
|
+ this.selectVal == '玉米(筛漏)' ||
|
|
|
+ this.selectVal == '玉米(陈粮)' ||
|
|
|
+ this.selectVal == '玉米(棒)' ||
|
|
|
+ this.selectVal == '玉米'
|
|
|
+ ) {
|
|
|
+ this.isSolidFood = true
|
|
|
+ this.baseInfoForm.bulkDensityStandard = 1
|
|
|
+ } else {
|
|
|
+ this.isSolidFood = false
|
|
|
+ this.baseInfoForm.bulkDensityStandard = ''
|
|
|
+ }
|
|
|
if (this.$route.query.type != '新增') {
|
|
|
let _data = this.priceList
|
|
|
this.checkList1 = []
|