input禁止输入时的文字显示,select下拉框颜色统一

This commit is contained in:
2023-08-29 17:51:11 +08:00
parent 1d5b7a535b
commit 9deb44bc04
5 changed files with 37 additions and 15 deletions

View File

@ -104,15 +104,15 @@
</div>
<div class="flex-between" >
<div>基本费用:</div>
<div class="halfOpcity inputContent" ><input type="number" :disabled="basePriceDisabled" v-model="form.supplierBasePrice"/></div>
<div class="halfOpcity inputContent " ><input :class="basePriceDisabled ? 'disable' : ''" type="number" :readonly="basePriceDisabled" v-model="form.supplierBasePrice"/><span :class="basePriceDisabled ? 'disable' : ''"></span></div>
</div>
<div class="flex-between" >
<div>额外费用总计:</div>
<div class="halfOpcity inputContent" ><input type="number" :disabled="true" v-model="form.supplierExtraPrice"/></div>
<div class="halfOpcity inputContent" ><input class="disable" type="number" :readonly="true" v-model="form.supplierExtraPrice"/><span class="disable"></span></div>
</div>
<div class="flex-between">
<div>费用总计: </div>
<div class="halfOpcity inputContent" ><input type="number" :disabled="true" v-model="form.supplierSettleAmount"/></div>
<div class="halfOpcity inputContent" ><input class="disable" type="number" :readonly="true" v-model="form.supplierSettleAmount"/><span class="disable"></span></div>
</div>
<div class="flex-between">
<div> </div>
@ -172,11 +172,11 @@
</tr>
<tr>
<td class="col1">基本费用:{{orderInfo.basePrice +'元'}}</td>
<td class="col2 halfOpc" ><input :disabled="basePriceDisabled" v-model="form.supplierBasePrice"/></td>
<td class="col2 halfOpc" :style="{ opacity: basePriceDisabled ? '1' : '0.5' }"><input :class="basePriceDisabled ? 'disable' : ''" :readonly="basePriceDisabled" v-model="form.supplierBasePrice"/></td>
</tr>
<tr>
<td class="col1">额外费用总计:{{orderInfo.extraPrice +'元'}}</td>
<td class="col2 halfOpc" ><input :disabled="true" v-model="form.supplierExtraPrice"/></td>
<td class="col2 halfOpc" style="opacity: 1;"><input class="disable" :readonly="true" v-model="form.supplierExtraPrice"/></td>
</tr>
<tr>
<td class="col1">收取客户:{{orderInfo.customerAmount +'元'}}</td>
@ -185,7 +185,7 @@
<tr>
<td class="col1">费用总计:{{orderInfo.settleAmount +'元'}}</td>
<td class="col2" style="width: 100%;display: flex;justify-content: center;box-sizing: border-box">
<input :disabled="true" v-model="form.supplierSettleAmount"/>
<input class="disable" :readonly="true" v-model="form.supplierSettleAmount"/>
<button class="btnCom" @click="compute">计算</button>
</td>
</tr>
@ -352,6 +352,7 @@ export default {
},
computed:{
basePriceDisabled(){
// return false
return !(this.serviceType == '困境救援' || this.serviceType == '困境-吊车' || this.serviceType == '困境救援-事故' || this.serviceType == '困境救援-故障'
|| (this.fixedPrice && parseFloat(this.fixedPrice) > 0 && this.fixedPriceType) || this.supplierId == 500921)
},
@ -582,6 +583,9 @@ export default {
background-color: #F4F5F7;
overflow-y: auto;
}
.disable{
color: #999999;;
}
.navBar{
margin-bottom: 46px;
}
@ -630,6 +634,8 @@ img{
input{
border: none;
text-align: right;
padding-right: 3px;
margin-right: 0;
}
.titleContent{
@include fontWeightSize(bold,13px);
@ -763,17 +769,15 @@ img{
}
.btn{
margin-top: 31px;
margin-bottom: 20px;
margin-bottom: 31px;
display: flex;
justify-content: space-around;
box-sizing: border-box;
//padding: 0 8px;
button{
@include wh(105px,39px);
line-height: 39px;
background: #9EA7C0;
border-radius: 5px;
color: #FFFFFF;
@include bgFontColor(#FFFFFF,#9EA7C0);
@include fontWeightSize(bold,14px);
border: none;
}