优化访问装修和时间插件选择

This commit is contained in:
xiaogang 2021-03-10 08:39:10 +08:00
parent 8c91933c69
commit 9548481877
13 changed files with 198 additions and 191 deletions

View File

@ -22,8 +22,6 @@
},
_initEvent: function () {
vc.on('addRoomRenovation', 'openAddRoomRenovationModal', function (_param) {
console.log("look here")
console.log(_param[0].userId)
vc.component.addRoomRenovationInfo.userId = _param[0].userId
$('#addRoomRenovationModel').modal('show');
});

View File

@ -10,14 +10,14 @@
<div class="form-group row">
<label class="col-sm-2 col-form-label">建账时间</label>
<div class="col-sm-10">
<input v-model="editFeeInfo.startTime" type="text" placeholder="必填,请填写计费起始时间"
<input v-model="editFeeInfo.startTime" type="text" placeholder="必填,请填写建账时间"
class="form-control editFeeStartTime">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">计费起始时间</label>
<div class="col-sm-10">
<input v-model="editFeeInfo.endTime" type="text" placeholder="必填,请填写计费终止时间"
<input v-model="editFeeInfo.endTime" type="text" placeholder="必填,请填写计费起始时间"
class="form-control editFeeEndTime">
</div>
</div>

View File

@ -17,15 +17,17 @@
if (_fee.startTime.indexOf(":") == -1) {
$that.editFeeInfo.startTime = $that.editFeeInfo.startTime + " 00:00:00";
}
if (_fee.endTime.indexOf(":") == -1) {
$that.editFeeInfo.endTime = $that.editFeeInfo.endTime + " 00:00:00";
}
/*if (_fee.endTime.indexOf(":") == -1) {
$that.editFeeInfo.endTime = $that.editFeeInfo.endTime;
}*/
$that.editFeeInfo.endTime = _fee.endTime.split(' ')[0];
$('#editFeeModel').modal('show');
});
},
methods: {
_initEditFeeDateInfo: function () {
$('.editFeeStartTime').datetimepicker({
minView: "month",
language: 'zh-CN',
fontAwesome: 'fa',
format: 'yyyy-mm-dd hh:ii:ss',
@ -40,9 +42,10 @@
vc.component.editFeeInfo.startTime = value;
});
$('.editFeeEndTime').datetimepicker({
minView: "month",
language: 'zh-CN',
fontAwesome: 'fa',
format: 'yyyy-mm-dd hh:ii:ss',
format: 'yyyy-mm-dd',
initTime: true,
initialDate: new Date(),
autoClose: 1,
@ -94,11 +97,6 @@
param: "",
errInfo: "计费起始时间不能为空"
},
{
limit: "dateTime",
param: "",
errInfo: "计费起始时间不是有效的时间格式"
},
]
});
},

View File

@ -1,5 +1,5 @@
<div id="editRoomModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-body">
@ -10,17 +10,18 @@
<div class="form-group row">
<label class="col-sm-2 col-form-label">房屋ID</label>
<div class="col-sm-10"><input v-model="editRoomInfo.roomId" disabled="disabled"
type="text" placeholder="必填,请填写房屋编号" class="form-control"></div>
type="text" placeholder="必填,请填写房屋编号" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">房屋编号</label>
<div class="col-sm-10"><input v-model="editRoomInfo.roomNum" type="text"
placeholder="必填,请填写房屋编号" class="form-control"></div>
placeholder="必填,请填写房屋编号" class="form-control"></div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">房屋楼层</label>
<div class="col-sm-10"><input v-model="editRoomInfo.layer" type="number"
placeholder="必填,请填写房屋楼层" class="form-control"></div>
placeholder="必填,请填写房屋楼层" class="form-control"></div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">房屋单元</label>
@ -28,7 +29,8 @@
<select class="custom-select" v-model="editRoomInfo.unitId">
<option selected disabled value="">必填,请选择单元</option>
<option v-for="(unit,index) in editRoomUnits" :key="index"
v-bind:value="unit.unitId">{{unit.unitNum}}单元</option>
v-bind:value="unit.unitId">{{unit.unitNum}}单元
</option>
</select>
</div>
</div>
@ -65,15 +67,15 @@
<div class="form-group row">
<label class="col-sm-2 col-form-label">建筑面积</label>
<div class="col-sm-10"><input v-model="editRoomInfo.builtUpArea" type="number"
placeholder="必填,请填写房屋建筑面积! 平方" class="form-control"></div>
placeholder="必填,请填写房屋建筑面积! 平方" class="form-control"></div>
</div>
<div class="form-group row">
<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>
placeholder="请填写算费系数" class="form-control"></div>
</div>
<div class="form-group row" v-if="editRoomInfo.state != '2002'">
<div class="form-group row" v-if="editRoomInfo.state != '2002'">
<label class="col-sm-2 col-form-label">房屋状态</label>
<div class="col-sm-10">
<select class="custom-select" v-model="editRoomInfo.state">
@ -82,6 +84,9 @@
<option value="2003">已交房</option>
<option value="2005">已装修</option>
<option value="2004">未入住</option>
<option value="2006">已出租</option>
<option value="2008">空闲</option>
<option value="2009">装修中</option>
</select>
</div>
</div>
@ -90,7 +95,7 @@
<label class="col-sm-2 col-form-label">{{item.specName}}</label>
<div class="col-sm-10">
<input v-model="item.value" type="text" :placeholder="item.specHoldplace"
class="form-control">
class="form-control">
</div>
</div>
@ -100,7 +105,7 @@
<select class="custom-select" v-model="item.value">
<option selected disabled value="">{{item.specHoldplace}}</option>
<option v-for="value in item.values" :label="value.valueName"
:value="value.value">
:value="value.value">
{{item.valueName}}
</option>
@ -111,13 +116,15 @@
<div class="form-group row">
<label class="col-sm-2 col-form-label">备注</label>
<div class="col-sm-10"><input v-model="editRoomInfo.remark" type="text"
placeholder="请填写备注信息" class="form-control"></div>
placeholder="请填写备注信息" class="form-control"></div>
</div>
<div class="ibox-content">
<button class="btn btn-primary float-right" type="button" v-on:click="editRoom()"><i
class="fa fa-check"></i>&nbsp;保存</button>
class="fa fa-check"></i>&nbsp;保存
</button>
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
data-dismiss="modal">取消</button>
data-dismiss="modal">取消
</button>
</div>
</div>
</div>

View File

@ -10,7 +10,7 @@
<label class="col-sm-2 col-form-label">房屋类型</label>
<div class="col-sm-10">
<select class="custom-select" v-model="roomCreateFeeAddInfo.roomType"
@change="_createFeeAddChangeRoomType()">
@change="_createFeeAddChangeRoomType()">
<option selected disabled value="">必填,请选择房屋类型</option>
<option value="1010301">普通房屋</option>
<option value="2020602">商铺</option>
@ -21,7 +21,7 @@
<label class="col-sm-2 col-form-label">收费范围</label>
<div class="col-sm-10">
<select class="custom-select" v-model="roomCreateFeeAddInfo.locationTypeCd"
v-if="roomCreateFeeAddInfo.isMore == true">
v-if="roomCreateFeeAddInfo.isMore == true">
<option selected disabled value="">必填,请选择收费范围</option>
<option value="1000">小区</option>
<option value="4000">楼栋</option>
@ -30,26 +30,26 @@
<option value="3000">房屋/商铺</option>
</select>
<input v-model="roomCreateFeeAddInfo.locationTypeCdName" disabled="disabled"
v-if="!roomCreateFeeAddInfo.isMore" type="text" placeholder="必填,请填写收费范围"
class="form-control" />
v-if="!roomCreateFeeAddInfo.isMore" type="text" placeholder="必填,请填写收费范围"
class="form-control"/>
</div>
</div>
<div class="form-group row"
v-show="roomCreateFeeAddInfo.locationTypeCd == '2000' || roomCreateFeeAddInfo.locationTypeCd == '3000' ||roomCreateFeeAddInfo.locationTypeCd == '4000' ">
v-show="roomCreateFeeAddInfo.locationTypeCd == '2000' || roomCreateFeeAddInfo.locationTypeCd == '3000' ||roomCreateFeeAddInfo.locationTypeCd == '4000' ">
<label class="col-sm-2 col-form-label">楼栋</label>
<div class="col-sm-10">
<vc:create path="property/floorSelect2" parentModal="roomCreateFeeAddModel"
namespace="roomCreateFeeAdd">
namespace="roomCreateFeeAdd">
</vc:create>
</div>
</div>
<div class="form-group row"
v-show="roomCreateFeeAddInfo.locationTypeCd == '2000' || roomCreateFeeAddInfo.locationTypeCd == '3000' ">
v-show="roomCreateFeeAddInfo.locationTypeCd == '2000' || roomCreateFeeAddInfo.locationTypeCd == '3000' ">
<label class="col-sm-2 col-form-label">单元</label>
<div class="col-sm-10">
<vc:create path="property/unitSelect2" parentModal="roomCreateFeeAddModel"
callBackListener="roomCreateFeeAdd" callBackFunction="notify"
namespace="roomCreateFeeAdd">
callBackListener="roomCreateFeeAdd" callBackFunction="notify"
namespace="roomCreateFeeAdd">
</vc:create>
</div>
</div>
@ -57,21 +57,20 @@
<label class="col-sm-2 col-form-label">房屋</label>
<div class="col-sm-10">
<vc:create path="property/roomSelect2" parentModal="roomCreateFeeAddModel"
callBackListener="roomCreateFeeAdd" callBackFunction="notify"
namespace="roomCreateFeeAdd">
callBackListener="roomCreateFeeAdd" callBackFunction="notify"
namespace="roomCreateFeeAdd">
</vc:create>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">费用类型</label>
<div class="col-sm-10">
<select class="custom-select" v-model="roomCreateFeeAddInfo.feeTypeCd"
@change="_changeFeeTypeCdX(roomCreateFeeAddInfo.feeTypeCd)">
@change="_changeFeeTypeCdX(roomCreateFeeAddInfo.feeTypeCd)">
<option selected disabled value="">必填,请选择费用类型</option>
<option v-for="(item,index) in roomCreateFeeAddInfo.feeTypeCds" :key="index"
v-bind:value="item.statusCd"
v-if="item.statusCd !='888800010008' && item.statusCd !='888800010017'">
v-bind:value="item.statusCd"
v-if="item.statusCd !='888800010008' && item.statusCd !='888800010017'">
{{item.name}}
</option>
</select>
@ -83,7 +82,7 @@
<select class="custom-select" v-model="roomCreateFeeAddInfo.configId">
<option selected disabled value="">必填,请选择收费项目</option>
<option v-for="(item,index) in roomCreateFeeAddInfo.feeConfigs" :key="index"
v-bind:value="item.configId">{{item.feeName}}
v-bind:value="item.configId">{{item.feeName}}
</option>
</select>
</div>
@ -92,17 +91,16 @@
<label class="col-sm-2 col-form-label">楼层</label>
<div class="col-sm-8" v-if="roomCreateFeeAddInfo.feeLayer != '全部'">
<input type="text" v-model="roomCreateFeeAddInfo.feeLayer"
placeholder="请输入楼层 多个层时用#分隔如1#2" class="form-control">
placeholder="请输入楼层 多个层时用#分隔如1#2" class="form-control">
</div>
<div class="col-sm-8" v-else>
<input type="text" v-model="roomCreateFeeAddInfo.feeLayer" disabled="disabled"
placeholder="请输入楼层 多个层时用#分隔如1#2" class="form-control">
placeholder="请输入楼层 多个层时用#分隔如1#2" class="form-control">
</div>
<div class="col-sm-2">
<button class="btn btn-primary float-right" type="button"
v-on:click="_changeFeeLayer()">
{{roomCreateFeeAddInfo.feeLayer==
'全部'?'自定义':'全部'}}
v-on:click="_changeFeeLayer()">
{{roomCreateFeeAddInfo.feeLayer== '全部'?'自定义':'全部'}}
</button>
</div>
</div>
@ -110,49 +108,59 @@
<label class="col-sm-2 col-form-label">房屋状态</label>
<div class="col-sm-10" v-if="roomCreateFeeAddInfo.roomType == '1010301'">
<div class="checkbox custom-control-inline">
<label><input type="checkbox" v-model="roomCreateFeeAddInfo.roomState"
value="2001">已入住</label>
<label>
<input type="checkbox" v-model="roomCreateFeeAddInfo.roomState"
value="2001">已入住
</label>
</div>
<div class="checkbox custom-control-inline">
<label><input type="checkbox" v-model="roomCreateFeeAddInfo.roomState"
value="2003">已交房</label>
<label>
<input type="checkbox" v-model="roomCreateFeeAddInfo.roomState"
value="2003">已交房
</label>
</div>
<div class="checkbox custom-control-inline">
<label><input type="checkbox" v-model="roomCreateFeeAddInfo.roomState"
value="2005">已装修</label>
<label>
<input type="checkbox" v-model="roomCreateFeeAddInfo.roomState"
value="2005">已装修
</label>
</div>
<div class="checkbox custom-control-inline">
<label><input type="checkbox" v-model="roomCreateFeeAddInfo.roomState"
value="2004">未入住</label>
<label>
<input type="checkbox" v-model="roomCreateFeeAddInfo.roomState"
value="2004">未入住
</label>
</div>
</div>
<div class="col-sm-10" v-else>
<div class="checkbox custom-control-inline">
<label><input type="checkbox" v-model="roomCreateFeeAddInfo.roomState"
value="2006">已出租</label>
<label>
<input type="checkbox" v-model="roomCreateFeeAddInfo.roomState"
value="2006">已出租
</label>
</div>
<div class="checkbox custom-control-inline">
<label><input type="checkbox" v-model="roomCreateFeeAddInfo.roomState"
value="2007">已出售</label>
<label>
<input type="checkbox" v-model="roomCreateFeeAddInfo.roomState"
value="2007">已出售
</label>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">计费起始时间</label>
<div class="col-sm-10">
<input v-model="roomCreateFeeAddInfo.startTime" type="text"
placeholder="必填,请填写计费起始时间" class="form-control roomCreateFeeStartTime">
placeholder="必填,请填写计费起始时间" class="form-control roomCreateFeeStartTime">
</div>
</div>
<div class="ibox-content">
<button class="btn btn-primary float-right" type="button"
v-on:click="saveRoomCreateFeeInfo()">
v-on:click="saveRoomCreateFeeInfo()">
<i class="fa fa-check"></i>&nbsp;提交
</button>
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
data-dismiss="modal">
data-dismiss="modal">
<i class="fa fa-times"></i>&nbsp;取消
</button>
</div>

View File

@ -70,9 +70,10 @@
methods: {
_initRoomCreateFeeAddInfo: function () {
$('.roomCreateFeeStartTime').datetimepicker({
minView: "month",
language: 'zh-CN',
fontAwesome: 'fa',
format: 'yyyy-mm-dd hh:ii:ss',
format: 'yyyy-mm-dd',
initTime: true,
initialDate: new Date(),
autoClose: 1,
@ -92,54 +93,50 @@
},
roomCreateFeeAddValidate() {
return vc.validate.validate({
roomCreateFeeAddInfo: $that.roomCreateFeeAddInfo
},
roomCreateFeeAddInfo: $that.roomCreateFeeAddInfo
},
{
'roomCreateFeeAddInfo.locationTypeCd': [{
limit: "required",
param: "",
errInfo: "收费范围不能为空"
},
{
limit: "num",
param: "",
errInfo: "收费范围格式错误"
},
{
limit: "num",
param: "",
errInfo: "收费范围格式错误"
},
],
'roomCreateFeeAddInfo.locationObjId': [{
limit: "required",
param: "",
errInfo: "收费对象不能为空"
}
],
}],
'roomCreateFeeAddInfo.feeTypeCd': [{
limit: "required",
param: "",
errInfo: "费用类型不能为空"
}
],
}],
'roomCreateFeeAddInfo.configId': [{
limit: "required",
param: "",
errInfo: "费用项目不能为空"
}
],
}],
'roomCreateFeeAddInfo.roomState': [{
limit: "required",
param: "",
errInfo: "房屋状态不能为空"
}
],
}],
'roomCreateFeeAddInfo.startTime': [{
limit: "required",
param: "",
errInfo: "计费起始时间不能为空"
},
{
limit: "datetime",
param: "",
errInfo: "计费起始时间格式错误 YYYY-MM-DD hh:mm:ss"
}]
{
limit: "datetime",
param: "",
errInfo: "计费起始时间格式错误 YYYY-MM-DD hh:mm:ss"
}]
});
},
saveRoomCreateFeeInfo: function () {
@ -169,8 +166,8 @@
_roomCreateFeeAddInfo.roomState = _roomCreateFeeAddInfo.roomState.join(',');
vc.http.post('roomCreateFeeAdd', 'save',
JSON.stringify(_roomCreateFeeAddInfo), {
emulateJSON: true
},
emulateJSON: true
},
function (json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
if (res.status == 200) {
@ -209,7 +206,7 @@
roomType: '1010301',
isMore: false,
locationTypeCdName: '',
startTime: vc.dateTimeFormat(new Date().getTime()),
startTime: '',
feeLayer: '全部'
};
$that.roomCreateFeeAddInfo.feeTypeCds = _feeTypeCds;
@ -243,12 +240,11 @@
$that.roomCreateFeeAddInfo.roomState = ['2006'];
}
},
_changeFeeLayer:function(){
_changeFeeLayer: function () {
let _feeLayer = $that.roomCreateFeeAddInfo.feeLayer;
if(_feeLayer == '全部'){
if (_feeLayer == '全部') {
$that.roomCreateFeeAddInfo.feeLayer = ''
}else{
} else {
$that.roomCreateFeeAddInfo.feeLayer = '全部'
}
}

View File

@ -35,7 +35,7 @@
vc.component.roomDecorationRecordInfo.photos = _param;
});
vc.on("roomDecorationRecord", "notifyUploadVedio", function (_param) {
vc.component.roomDecorationRecordInfo.videoName = _param.fileName;
vc.component.roomDecorationRecordInfo.videoName = _param.realFileName;
});
},
methods: {
@ -88,8 +88,6 @@
$('#roomDecorationRecordModel').modal('hide');
return;
}
console.log("here")
console.log(vc.component.roomDecorationRecordInfo)
vc.http.apiPost(
'/roomRenovation/updateRoomDecorationRecord',
JSON.stringify(vc.component.roomDecorationRecordInfo),
@ -99,8 +97,6 @@
function (json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
let _json = JSON.parse(json);
console.log("12333121")
console.log(_json)
if (_json.code == 0) {
//关闭model
$('#roomDecorationRecordModel').modal('hide');

BIN
public/img/icon-bigimg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -16,7 +16,7 @@
<thead>
<tr>
<th class="text-center">房屋</th>
<th class="text-center">图片</th>
<th class="text-center">图片/视频</th>
<th class="text-center">创建时间</th>
</tr>
</thead>
@ -24,9 +24,11 @@
<tr v-for="roomRenovationRecordDetail in roomRenovationRecordDetailsInfo.roomRenovationRecordDetails">
<td class="text-center">{{roomRenovationRecordDetail.roomName}}</td>
<td class="text-center">
<img width="50" height="50" v-bind:src="roomRenovationRecordDetail.url"
onerror="this.src='/img/noPhoto.jpg';"
v-if="roomRenovationRecordDetail.relTypeCd == '19000'">
<div style="position: relative; display: inline-block;" v-on:click="showImg(roomRenovationRecordDetail.url)" v-if="roomRenovationRecordDetail.relTypeCd == '19000'">
<img width="50" height="50" v-bind:src="roomRenovationRecordDetail.url"
onerror="this.src='/img/noPhoto.jpg';">
<img src="/img/icon-bigimg.png" style="position: absolute;right: 0;bottom: 0;" width="50" height="50" alt="">
</div>
<video width="200" height="200" controls autoplay
v-if="roomRenovationRecordDetail.relTypeCd == '21000'">
<source v-bind:src="roomRenovationRecordDetail.url" type="video/mp4">
@ -48,5 +50,8 @@
</div>
</div>
</div>
<div v-show="roomRenovationRecordDetailsInfo.imgBoxSwitch" style="position: fixed;top: 0;left: 0;width: 100%;height: 100%;text-align: center;">
<img v-bind:src="roomRenovationRecordDetailsInfo.imgBoxUrl" width="600" height="500" alt="" v-on:click="hideImgBox()">
</div>
</div>
</div>

View File

@ -11,6 +11,8 @@
total: 0,
records: 1,
moreCondition: false,
imgBoxSwitch: false,
imgBoxUrl: '',
conditions: {
recordId: '',
roomName: '',
@ -44,8 +46,6 @@
param,
function (json, res) {
var _roomRenovationRecordDetailsInfo = JSON.parse(json);
console.log("here")
console.log(_roomRenovationRecordDetailsInfo)
vc.component.roomRenovationRecordDetailsInfo.total = _roomRenovationRecordDetailsInfo.total;
vc.component.roomRenovationRecordDetailsInfo.records = _roomRenovationRecordDetailsInfo.records;
vc.component.roomRenovationRecordDetailsInfo.roomRenovationRecordDetails = _roomRenovationRecordDetailsInfo.data;
@ -67,6 +67,13 @@
},
_goBack: function () {
vc.goBack();
},
showImg: function (e) {
vc.component.roomRenovationRecordDetailsInfo.imgBoxSwitch = true;
vc.component.roomRenovationRecordDetailsInfo.imgBoxUrl = e;
},
hideImgBox: function () {
vc.component.roomRenovationRecordDetailsInfo.imgBoxSwitch = false;
}
}
});

View File

@ -6,7 +6,7 @@
<h5>查询条件</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
v-on:click="_moreCondition()">{{roomCreateFeeInfo.moreCondition == true?'隐藏':'更多'}}
v-on:click="_moreCondition()">{{roomCreateFeeInfo.moreCondition == true?'隐藏':'更多'}}
</button>
</div>
</div>
@ -22,14 +22,14 @@
<div class="col-sm-3">
<div class="form-group">
<input type="text"
:placeholder="roomCreateFeeInfo.conditions.roomType == '2020602'?'请填写楼栋-商铺 如1-1123':'请填写楼栋-单元-房屋 如1-1-1123'"
class="form-control " v-model="roomCreateFeeInfo.conditions.allNum"
@keyup.enter="_queryRoomMethod">
:placeholder="roomCreateFeeInfo.conditions.roomType == '2020602'?'请填写楼栋-商铺 如1-1123':'请填写楼栋-单元-房屋 如1-1-1123'"
class="form-control " v-model="roomCreateFeeInfo.conditions.allNum"
@keyup.enter="_queryRoomMethod">
</div>
</div>
<div class="col-sm-3">
<input type="text" placeholder="请填写业主名称" class="form-control "
v-model="roomCreateFeeInfo.conditions.ownerName" @keyup.enter="_queryRoomMethod">
v-model="roomCreateFeeInfo.conditions.ownerName" @keyup.enter="_queryRoomMethod">
</div>
<div class="col-sm-2">
@ -37,7 +37,7 @@
class="fa fa-search"></i> 查询
</button>
<button type="button" class="btn btn-info btn-sm" v-on:click="_resetRoomMethod()"
style="margin-left: 20px;">
style="margin-left: 20px;">
<i class="fa fa-repeat"></i> 重置
</button>
</div>
@ -46,10 +46,10 @@
<div class="col-sm-3">
<div class="form-group input-group">
<input type="text" placeholder="请选择楼栋" v-model="roomCreateFeeInfo.conditions.floorName"
class=" form-control">
class=" form-control">
<div class="input-group-prepend">
<button type="button" class="btn btn-primary btn-sm"
v-on:click="_openChooseFloorMethod()">
v-on:click="_openChooseFloorMethod()">
<i class="fa fa-search"></i> 选择
</button>
</div>
@ -58,7 +58,7 @@
<div class="col-sm-3">
<div class="form-group">
<select class=" form-control input-s-sm inline"
v-model="roomCreateFeeInfo.conditions.unitId">
v-model="roomCreateFeeInfo.conditions.unitId">
<option selected value="">请选择单元</option>
<option v-for="(unit,index) in roomUnits" :key="index" v-bind:value="unit.unitId">
{{unit.unitNum}}单元
@ -68,7 +68,7 @@
</div>
<div class="col-sm-3">
<input type="text" placeholder="请填写业主身份证号" class="form-control "
v-model="roomCreateFeeInfo.conditions.idCard" @keyup.enter="_queryRoomMethod">
v-model="roomCreateFeeInfo.conditions.idCard" @keyup.enter="_queryRoomMethod">
</div>
</div>
</div>
@ -82,89 +82,88 @@
<h5>房屋信息</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
v-on:click="_openRoomCreateFeeAddModal(null,true)">
v-on:click="_openRoomCreateFeeAddModal(null,true)">
<i class="fa fa-plus"></i> 批量创建
</button>
<button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
v-on:click="_downloadCollectionLetterOrder()">
v-on:click="_downloadCollectionLetterOrder()">
<i class="fa fa-download"></i> 批量催缴单
</button>
</div>
</div>
<div class="ibox-content">
<table class="footable table table-stripped toggle-arrow-tiny" style="margin-top:10px"
data-page-size="10">
data-page-size="10">
<thead>
<tr>
<th data-hide="phone" class="text-center">房屋类型</th>
<th data-hide="phone" class="text-center">房屋(栋/单元/室)</th>
<th data-hide="phone" class="text-center">楼层(单位:层)</th>
<th data-hide="phone" class="text-center">房屋状态</th>
<th data-hide="phone" class="text-center">业主名称</th>
<th data-hide="phone" class="text-center">联系电话</th>
<th data-hide="phone" class="text-center">业主身份证号</th>
<th class="text-center">房屋ID</th>
<th class="text-center">操作</th>
</tr>
<tr>
<th data-hide="phone" class="text-center">房屋类型</th>
<th data-hide="phone" class="text-center">房屋(栋/单元/室)</th>
<th data-hide="phone" class="text-center">楼层(单位:层)</th>
<th data-hide="phone" class="text-center">房屋状态</th>
<th data-hide="phone" class="text-center">业主名称</th>
<th data-hide="phone" class="text-center">联系电话</th>
<th data-hide="phone" class="text-center">业主身份证号</th>
<th class="text-center">房屋ID</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody>
<tr v-for="room in roomCreateFeeInfo.rooms">
<td class="text-center">
{{room.roomType=='1010301'?'房屋':'商铺'}}
</td>
<td class="text-center" v-if="room.roomType=='1010301'">
{{room.floorNum}}-{{room.unitNum}}-{{room.roomNum}}
</td>
<td class="text-center" v-else>
{{room.floorNum}}-{{room.roomNum}}
</td>
<td class="text-center">
{{room.layer}}
</td>
<td class="text-center">
{{room.stateName}}
</td>
<td class="text-center">
{{room.ownerName}}
</td>
<td class="text-center">
{{room.link}}
<tr v-for="room in roomCreateFeeInfo.rooms">
<td class="text-center">
{{room.roomType=='1010301'?'房屋':'商铺'}}
</td>
<td class="text-center" v-if="room.roomType=='1010301'">
{{room.floorNum}}-{{room.unitNum}}-{{room.roomNum}}
</td>
<td class="text-center" v-else>
{{room.floorNum}}-{{room.roomNum}}
</td>
<td class="text-center">
{{room.layer}}
</td>
<td class="text-center">
{{room.stateName}}
</td>
<td class="text-center">
{{room.ownerName}}
</td>
<td class="text-center">
{{room.link}}
<td class="text-center">
{{room.idCard}}
</td>
<td class="text-center">
{{room.roomId}}
</td>
<td class="text-center">
<div class="btn-group" v-if="room.state != '2002'">
<button class="btn-white btn btn-xs" v-on:click="_toOwnerPayFee(room)">欠费缴费
</button>
</div>
<div class="btn-group" v-if="room.state != '2002'">
<button class="btn-white btn btn-xs"
<td class="text-center">
{{room.idCard}}
</td>
<td class="text-center">
{{room.roomId}}
</td>
<td class="text-center">
<div class="btn-group" v-if="room.state != '2002'">
<button class="btn-white btn btn-xs" v-on:click="_toOwnerPayFee(room)">欠费缴费</button>
</div>
<div class="btn-group" v-if="room.state != '2002'">
<button class="btn-white btn btn-xs"
v-on:click="_openTranslateFeeManualCollectionDetailModel(room)">人工托收
</button>
</div>
<div class="btn-group" v-if="room.state != '2002'">
<button class="btn-white btn btn-xs"
</button>
</div>
<div class="btn-group" v-if="room.state != '2002'">
<button class="btn-white btn btn-xs"
v-on:click="_downloadRoomCollectionLetterOrder(room)">催缴单
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs"
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openViewRoomCreateFee(room)">查看费用
</button>
</div>
</td>
</tr>
</button>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="7">
<ul class="pagination float-right"></ul>
</td>
</tr>
<tr>
<td colspan="7">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
<!-- 分页 -->

View File

@ -34,10 +34,8 @@
currentPage: 1,
},
_initMethod: function () {
//检查是否有缓存数据
let _tempData = vc.getData(TEMP_SEARCH);
if (_tempData == null) {
vc.component.roomCreateFeeInfo.conditions.floorId = vc.getParam("floorId");
vc.component.roomCreateFeeInfo.conditions.floorName = vc.getParam("floorName");
@ -48,14 +46,12 @@
$that.updateCurrentPage(_tempData.currentPage);
vc.component.listRoom(_tempData.currentPage, DEFAULT_ROW);
}
},
_initEvent: function () {
vc.on('room', 'chooseFloor', function (_param) {
vc.component.roomCreateFeeInfo.conditions.floorId = _param.floorId;
vc.component.roomCreateFeeInfo.conditions.floorName = _param.floorName;
vc.component.loadUnits(_param.floorId);
});
vc.on('pagination', 'page_event', function (_currentPage) {
$that.updateCurrentPage(_currentPage);
@ -63,7 +59,6 @@
});
},
methods: {
listRoom: function (_page, _row) {
if (vc.component.roomCreateFeeInfo.conditions.floorName == '' || vc.component.roomCreateFeeInfo.conditions.floorName == null) {
vc.component.roomCreateFeeInfo.conditions.floorId = ''
@ -177,11 +172,9 @@
vc.component.roomCreateFeeInfo.total = listRoomData.total;
vc.component.roomCreateFeeInfo.records = listRoomData.records;
vc.component.roomCreateFeeInfo.rooms = listRoomData.rooms;
// 缓存
$that.updateCurrentPage(DEFAULT_PAGE);
$that.saveTempSearchData();
//
vc.emit('pagination', 'init', {
total: vc.component.roomCreateFeeInfo.records,
dataCount: vc.component.roomCreateFeeInfo.total,
@ -223,8 +216,7 @@
if (res.status == 200) {
var _floorInfo = JSON.parse(json);
var _tmpFloor = _floorInfo.apiFloorDataVoList[0];
/*vc.emit('roomSelectFloor','chooseFloor', _tmpFloor);
*/
/*vc.emit('roomSelectFloor','chooseFloor', _tmpFloor);*/
return;
}
vc.toast(json);
@ -299,11 +291,11 @@
currentPage: $that.currentPage
});
},
_downloadCollectionLetterOrder:function(){
vc.jumpToPage('/callComponent/feeManualCollection/downloadCollectionLetterOrder?communityId=' + vc.getCurrentCommunity().communityId );
_downloadCollectionLetterOrder: function () {
vc.jumpToPage('/callComponent/feeManualCollection/downloadCollectionLetterOrder?communityId=' + vc.getCurrentCommunity().communityId);
},
_downloadRoomCollectionLetterOrder:function(_room){
vc.jumpToPage('/callComponent/feeManualCollection/downloadCollectionLetterOrder?communityId=' + vc.getCurrentCommunity().communityId +"&roomId="+_room.roomId );
_downloadRoomCollectionLetterOrder: function (_room) {
vc.jumpToPage('/callComponent/feeManualCollection/downloadCollectionLetterOrder?communityId=' + vc.getCurrentCommunity().communityId + "&roomId=" + _room.roomId);
}
}
});

View File

@ -89,6 +89,7 @@
_openAddRoomRenovationModal: function () {
vc.emit('addRoomRenovation', 'openAddRoomRenovationModal', vc.component.roomRenovationManageInfo.roomRenovations);
},
//修改
_openEditRoomRenovationModel: function (_roomRenovation) {
vc.emit('editRoomRenovation', 'openEditRoomRenovationModal', _roomRenovation);
},