|
@@ -78,11 +78,12 @@
|
|
|
</view>
|
|
|
<view class="c-row ">
|
|
|
<view class="title">类型</view>
|
|
|
- <view class="con-list">
|
|
|
+ <view v-if="!edit" class="con-list">
|
|
|
<view @click='show3=true'>{{gridList.type}}</view>
|
|
|
<u-picker :range="typeList" @confirm='typepicker($event)' v-model="show3" mode="selector">
|
|
|
</u-picker>
|
|
|
</view>
|
|
|
+ <view v-else class="con-list">{{gridList.type}}</view>
|
|
|
</view>
|
|
|
<view v-if="gridList.type == '潮粮'" class="c-row">
|
|
|
<view class="title">净重单价(元/公斤)</view>
|
|
@@ -178,6 +179,7 @@
|
|
|
feild: undefined,
|
|
|
id: 0,
|
|
|
show: false,
|
|
|
+ edit:true,
|
|
|
selector: [],
|
|
|
show1: false,
|
|
|
inputContent: '',
|
|
@@ -512,6 +514,16 @@
|
|
|
goodspicker(e) {
|
|
|
console.log(e)
|
|
|
// this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
|
|
|
+ if(this.goodsList[e[0]].goodsName=='玉米'){
|
|
|
+ this.gridList.type='干粮'
|
|
|
+ this.edit=true
|
|
|
+ }
|
|
|
+ else if(this.goodsList[e[0]].goodsName=='玉米(潮粮)'){
|
|
|
+ this.gridList.type='潮粮'
|
|
|
+ this.edit=true
|
|
|
+ }else{
|
|
|
+ this.edit=false
|
|
|
+ }
|
|
|
this.gridList.goodsName = this.goodsList[e[0]].goodsName
|
|
|
uni.setStorageSync('goodsName', this.gridList.goodsName)
|
|
|
if (this.gridList.type == "干粮" && this.gridList.goodsName) {
|