mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
保证金查询功能、连续添加类型失效
This commit is contained in:
parent
2fd36cc069
commit
ac962cea64
@ -12,8 +12,8 @@
|
|||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<select class="custom-select" v-model="addAccountBondInfo.objId"
|
<select class="custom-select" v-model="addAccountBondInfo.objId"
|
||||||
@change="setAddBondName(addAccountBondInfo.objId)" >
|
@change="setAddBondName(addAccountBondInfo.objId)" >
|
||||||
<option selected disabled value="">必填,请选择物品类型</option>
|
<option selected disabled value="">必填,请选择店铺类型</option>
|
||||||
<option v-for="(item,index) in addAccountBondInfo.shopTypes"
|
<option v-for="(item,index) in accountBondManageInfo.shopTypes"
|
||||||
:key="index"
|
:key="index"
|
||||||
v-bind:value="item.shopTypeId">
|
v-bind:value="item.shopTypeId">
|
||||||
{{item.typeName}}
|
{{item.typeName}}
|
||||||
|
|||||||
@ -13,13 +13,11 @@
|
|||||||
bondMonth: '',
|
bondMonth: '',
|
||||||
objId: '',
|
objId: '',
|
||||||
bondType: '6006',
|
bondType: '6006',
|
||||||
remark: '',
|
remark: ''
|
||||||
shopTypes : []
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod: function () {
|
_initMethod: function () {
|
||||||
$that._listAddShopTypes();
|
|
||||||
},
|
},
|
||||||
_initEvent: function () {
|
_initEvent: function () {
|
||||||
vc.on('addAccountBond', 'openAddAccountBondModal', function () {
|
vc.on('addAccountBond', 'openAddAccountBondModal', function () {
|
||||||
@ -117,30 +115,8 @@
|
|||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
_listAddShopTypes:function(){
|
|
||||||
|
|
||||||
var param = {
|
|
||||||
params: {
|
|
||||||
page: 1,
|
|
||||||
row: 100
|
|
||||||
}
|
|
||||||
};
|
|
||||||
//发送get请求
|
|
||||||
vc.http.apiGet('/shopType/queryShopType',
|
|
||||||
param,
|
|
||||||
function(json,res){
|
|
||||||
var _shopTypeManageInfo=JSON.parse(json);
|
|
||||||
vc.component.addAccountBondInfo.total = _shopTypeManageInfo.total;
|
|
||||||
vc.component.addAccountBondInfo.records = _shopTypeManageInfo.records;
|
|
||||||
vc.component.addAccountBondInfo.shopTypes = _shopTypeManageInfo.data;
|
|
||||||
},function(errInfo,error){
|
|
||||||
console.log('请求失败处理');
|
|
||||||
}
|
|
||||||
);
|
|
||||||
},
|
|
||||||
setAddBondName:function(_objId){
|
setAddBondName:function(_objId){
|
||||||
|
$that.accountBondManageInfo.shopTypes.forEach(item => {
|
||||||
$that.addAccountBondInfo.shopTypes.forEach(item => {
|
|
||||||
if (item.shopTypeId == _objId) {
|
if (item.shopTypeId == _objId) {
|
||||||
$that.addAccountBondInfo.bondName = item.typeName;
|
$that.addAccountBondInfo.bondName = item.typeName;
|
||||||
}
|
}
|
||||||
@ -153,8 +129,7 @@
|
|||||||
bondMonth: '',
|
bondMonth: '',
|
||||||
objId: '',
|
objId: '',
|
||||||
bondType: '6006',
|
bondType: '6006',
|
||||||
remark: '',
|
remark: ''
|
||||||
shopTypes : []
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
<option value="1000">小区内设备</option>
|
<option value="1000">小区内设备</option>
|
||||||
<option value="2000">业主首页</option>
|
<option value="2000">业主首页</option>
|
||||||
<option value="3000">商圈首页</option>
|
<option value="3000">商圈首页</option>
|
||||||
<option value="5000">家政首页</option>
|
<option value="5000">服务首页</option>
|
||||||
<option value="6000">便民首页</option>
|
<option value="6000">便民首页</option>
|
||||||
<option value="4000">员工首页</option>
|
<option value="4000">员工首页</option>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@ -18,13 +18,20 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="text" placeholder="请输入店铺类型"
|
<select class="custom-select" v-model="accountBondManageInfo.conditions.objId" >
|
||||||
v-model="accountBondManageInfo.conditions.objId" class=" form-control">
|
<option value="">请选择物品类型</option>
|
||||||
|
<option v-for="(item,index) in accountBondManageInfo.shopTypes" :value="item.shopTypeId">
|
||||||
|
{{item.typeName}}
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-sm-1">
|
||||||
|
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryAccountBondMethod()">
|
||||||
|
<i class="glyphicon glyphicon-search"></i> 查询
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -16,11 +16,13 @@
|
|||||||
bondName: '',
|
bondName: '',
|
||||||
objId: '',
|
objId: '',
|
||||||
|
|
||||||
}
|
},
|
||||||
|
shopTypes : []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod: function () {
|
_initMethod: function () {
|
||||||
vc.component._listAccountBonds(DEFAULT_PAGE, DEFAULT_ROWS);
|
vc.component._listAccountBonds(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||||
|
$that._listAddShopTypes();
|
||||||
},
|
},
|
||||||
_initEvent: function () {
|
_initEvent: function () {
|
||||||
|
|
||||||
@ -76,7 +78,26 @@
|
|||||||
} else {
|
} else {
|
||||||
vc.component.accountBondManageInfo.moreCondition = true;
|
vc.component.accountBondManageInfo.moreCondition = true;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
_listAddShopTypes:function(){
|
||||||
|
var param = {
|
||||||
|
params: {
|
||||||
|
page: 1,
|
||||||
|
row: 100
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
//发送get请求
|
||||||
|
vc.http.apiGet('/shopType/queryShopType',
|
||||||
|
param,
|
||||||
|
function(json,res){
|
||||||
|
var _shopTypeManageInfo=JSON.parse(json);
|
||||||
|
vc.component.accountBondManageInfo.shopTypes = _shopTypeManageInfo.data;
|
||||||
|
},function(errInfo,error){
|
||||||
|
console.log('请求失败处理');
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user