mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
8958ce5135
commit
8edebe81b4
@ -61,9 +61,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">房屋单价</label>
|
||||
<label class="col-sm-2 col-form-label">算费系数</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="addRoomViewInfo.unitPrice" type="text" placeholder="请填写房屋单价(元)"
|
||||
<input v-model="addRoomViewInfo.feeCoefficient" type="text" placeholder="请填写算费系数"
|
||||
class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
apartment1: '',
|
||||
apartment2: '',
|
||||
builtUpArea: '',
|
||||
unitPrice: '',
|
||||
feeCoefficient: '1.00',
|
||||
state: '2002',
|
||||
remark: '',
|
||||
communityId: vc.getCurrentCommunity().communityId,
|
||||
@ -93,6 +93,18 @@
|
||||
errInfo: "建筑面积错误,如 300.00"
|
||||
},
|
||||
],
|
||||
'addRoomViewInfo.feeCoefficient':[
|
||||
{
|
||||
limit:"required",
|
||||
param:"",
|
||||
errInfo:"算费系数不能为空"
|
||||
},
|
||||
{
|
||||
limit:"money",
|
||||
param:"",
|
||||
errInfo:"算费系数错误,如 300.00"
|
||||
}
|
||||
],
|
||||
'addRoomViewInfo.state': [{
|
||||
limit: "required",
|
||||
param: "",
|
||||
|
||||
@ -63,8 +63,8 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">房屋单价</label>
|
||||
<div class="col-sm-10"><input v-model="editRoomInfo.unitPrice" type="number" placeholder="请填写房屋单价(单位元)" class="form-control"></div>
|
||||
<label class="col-sm-2 col-form-label">算费系数</label>
|
||||
<div class="col-sm-10"><input v-model="editRoomInfo.feeCoefficient" type="text" placeholder="请填写算费系数" class="form-control"></div>
|
||||
</div>
|
||||
<div v-for="(item,index) in editRoomInfo.attrs">
|
||||
<div class="form-group row" v-if="item.specType == '2233'">
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
apartment1:'',
|
||||
apartment2:'',
|
||||
builtUpArea:'',
|
||||
unitPrice:'',
|
||||
feeCoefficient:'1.00',
|
||||
state:'',
|
||||
remark:'',
|
||||
communityId:'',
|
||||
@ -69,9 +69,9 @@
|
||||
var tmpUnits = JSON.parse(json);
|
||||
vc.component.editRoomUnits = tmpUnits;
|
||||
|
||||
if('0.00' == vc.component.editRoomInfo.unitPrice){
|
||||
vc.component.editRoomInfo.unitPrice='';
|
||||
}
|
||||
// if('0.00' == vc.component.editRoomInfo.unitPrice){
|
||||
// vc.component.editRoomInfo.unitPrice='';
|
||||
// }
|
||||
vc.component.editRoomInfo.apartment1=vc.component.editRoomInfo.apartment.substr(0,2);
|
||||
vc.component.editRoomInfo.apartment2=vc.component.editRoomInfo.apartment.substr(2,5);
|
||||
/*if(tmpUnits == null || tmpUnits.length == 0){
|
||||
@ -181,6 +181,18 @@
|
||||
errInfo:"建筑面积数字长度不能超过6位"
|
||||
}
|
||||
],
|
||||
'editRoomInfo.feeCoefficient':[
|
||||
{
|
||||
limit:"required",
|
||||
param:"",
|
||||
errInfo:"算费系数不能为空"
|
||||
},
|
||||
{
|
||||
limit:"money",
|
||||
param:"",
|
||||
errInfo:"算费系数错误,如 300.00"
|
||||
}
|
||||
],
|
||||
'editRoomInfo.remark':[
|
||||
{
|
||||
limit:"maxLength",
|
||||
@ -242,7 +254,7 @@
|
||||
apartment1:'',
|
||||
apartment2:'',
|
||||
builtUpArea:'',
|
||||
unitPrice:'',
|
||||
feeCoefficient:'1.00',
|
||||
state:'',
|
||||
remark:'',
|
||||
communityId:'',
|
||||
|
||||
@ -107,10 +107,9 @@
|
||||
<th data-hide="phone">单元</th>
|
||||
<th data-hide="phone">楼层</th>
|
||||
<th data-hide="phone">房屋名称</th>
|
||||
|
||||
<!--<th data-hide="phone">户型</th>-->
|
||||
|
||||
<th data-hide="phone">建筑面积</th>
|
||||
<th data-hide="phone">单价</th>
|
||||
<th data-hide="phone">算费系数</th>
|
||||
<th data-hide="phone">房屋状态</th>
|
||||
<th v-for="(item,index) in roomInfo.listColumns">{{item}}</th>
|
||||
<th class="text-right">操作</th>
|
||||
@ -142,7 +141,7 @@
|
||||
{{room.builtUpArea}}平方米
|
||||
</td>
|
||||
<td>
|
||||
{{room.unitPrice != '0.00'?room.unitPrice:'0'}}元
|
||||
{{room.feeCoefficient}}
|
||||
</td>
|
||||
<td>
|
||||
{{vc.component.showState(room.state)}}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user