|
@@ -235,15 +235,17 @@
|
|
<view v-if="gridList.type == '潮粮'&&gridList.serviceManagementType==3" class="c-row">
|
|
<view v-if="gridList.type == '潮粮'&&gridList.serviceManagementType==3" class="c-row">
|
|
<view class="title">净重单价(元/公斤)</view>
|
|
<view class="title">净重单价(元/公斤)</view>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <input :disabled='flag==1' v-model='gridList.tidalGrainPrice' disabled placeholder="自动获取,不可编辑"
|
|
|
|
|
|
+ <input :disabled='flag==1&&pricedisabled' v-model='gridList.tidalGrainPrice' @blur='inputprice' placeholder="自动获取,不可编辑"
|
|
name="input"></input>
|
|
name="input"></input>
|
|
</view>
|
|
</view>
|
|
|
|
+ <button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button>
|
|
</view>
|
|
</view>
|
|
<view v-if="gridList.type == '干粮'&&gridList.serviceManagementType==3" class="c-row">
|
|
<view v-if="gridList.type == '干粮'&&gridList.serviceManagementType==3" class="c-row">
|
|
<view class="title">干粮单价(元/公斤)</view>
|
|
<view class="title">干粮单价(元/公斤)</view>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <input v-model='gridList.dryGrainPrice' type="digit" placeholder="请输入干粮单价" name="input"></input>
|
|
|
|
|
|
+ <input v-model='gridList.dryGrainPrice' :disabled='pricedisabled' type="digit" @blur='inputprice' placeholder="请输入干粮单价" name="input"></input>
|
|
</view>
|
|
</view>
|
|
|
|
+ <button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button>
|
|
</view>
|
|
</view>
|
|
<view class="c-row-fj" v-if="flag==2||flag==1">
|
|
<view class="c-row-fj" v-if="flag==2||flag==1">
|
|
<view style="margin: 0px 0px 30rpx 10rpx;">复检备注</view>
|
|
<view style="margin: 0px 0px 30rpx 10rpx;">复检备注</view>
|
|
@@ -387,10 +389,12 @@
|
|
show5:false,
|
|
show5:false,
|
|
show7:false,
|
|
show7:false,
|
|
show8:false,
|
|
show8:false,
|
|
|
|
+ pricedisabled:false,
|
|
multiSelector1:[{name:'他运',value:'他运'}],
|
|
multiSelector1:[{name:'他运',value:'他运'}],
|
|
outType:'',
|
|
outType:'',
|
|
selector: [],
|
|
selector: [],
|
|
show1: false,
|
|
show1: false,
|
|
|
|
+ pricetext:'锁定',
|
|
goodsName: false,
|
|
goodsName: false,
|
|
carstatus: false,
|
|
carstatus: false,
|
|
params:{year: true,
|
|
params:{year: true,
|
|
@@ -616,6 +620,22 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ changeprice(){
|
|
|
|
+ if(this.pricetext=='解锁'){
|
|
|
|
+ this.pricedisabled=false
|
|
|
|
+ this.pricetext='锁定'
|
|
|
|
+ }else{
|
|
|
|
+ this.pricedisabled=true
|
|
|
|
+ this.pricetext='解锁'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ inputprice(){
|
|
|
|
+ if(this.pricetext=='锁定'){
|
|
|
|
+ this.pricedisabled=true
|
|
|
|
+
|
|
|
|
+ this.pricetext='解锁'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
inOutDatepicker(e){
|
|
inOutDatepicker(e){
|
|
this.gridList.inOutDate=e.year+'-'+e.month+'-'+e.day
|
|
this.gridList.inOutDate=e.year+'-'+e.month+'-'+e.day
|
|
console.log(e)
|
|
console.log(e)
|