|
@@ -11,8 +11,8 @@
|
|
|
<el-row class="base-info">
|
|
|
<el-col :span="2" style="line-height: 32px;">基本信息</el-col>
|
|
|
<el-col :span="22">
|
|
|
- <el-button :type="isSolidFood?'primary':''" @click="typeChange()">以水分定价</el-button>
|
|
|
- <el-button :type="!isSolidFood?'primary':''" @click="typeChange(1)">以容重定价</el-button>
|
|
|
+ <el-button :type="!isSolidFood?'primary':''" @click="typeChange()" v-if="type == '新增'">以水分定价</el-button>
|
|
|
+ <el-button :type="isSolidFood?'primary':''" @click="typeChange(1)" v-if="type == '新增'">以容重定价</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<div class="row1">
|
|
@@ -345,6 +345,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
activated() {
|
|
|
+ debugger
|
|
|
+
|
|
|
+ console.log(this.$route.query.type)
|
|
|
// 货名
|
|
|
let _goodsNameList = []
|
|
|
_goodsNameList = this.$route.query.goodsNameList
|
|
@@ -372,20 +375,20 @@ export default {
|
|
|
if (_goodsNameList.length == 0) {
|
|
|
this.goodnameList = response
|
|
|
this.selectVal = response[0].constValue
|
|
|
- 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.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 = ''
|
|
|
+ // }
|
|
|
|
|
|
// this.isSolidFood = false
|
|
|
// this.baseInfoForm.bulkDensityStandard = ''
|
|
@@ -395,24 +398,24 @@ export default {
|
|
|
if (_list.length != 0) {
|
|
|
this.selectVal = _list[0].constValue
|
|
|
this.selectVal = _goodsNameList[0]
|
|
|
- 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.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 = ''
|
|
|
+ // }
|
|
|
this.baseInfoForm.goodsNameKey = _list[0].constKey
|
|
|
|
|
|
- this.isSolidFood = false
|
|
|
- this.baseInfoForm.bulkDensityStandard = ''
|
|
|
+ // this.isSolidFood = false
|
|
|
+ // this.baseInfoForm.bulkDensityStandard = ''
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -544,6 +547,13 @@ export default {
|
|
|
//构造查看priceList数据
|
|
|
this.priceList = []
|
|
|
this.makeLookPriceList()
|
|
|
+ if(this.baseInfoForm.bulkDensityStandard == 1){
|
|
|
+ this.isSolidFood = true
|
|
|
+ this.baseInfoForm.bulkDensityStandard = 1
|
|
|
+ }else{
|
|
|
+ this.isSolidFood = false
|
|
|
+ this.baseInfoForm.bulkDensityStandard = ""
|
|
|
+ }
|
|
|
// if (this.selectVal == '玉米淀粉' ||
|
|
|
// this.selectVal == '玉米(机收)' ||
|
|
|
// this.selectVal == '玉米(酒精)' ||
|