mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
保证金查询功能、连续添加类型失效
This commit is contained in:
parent
2fd36cc069
commit
ac962cea64
@ -12,8 +12,8 @@
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="addAccountBondInfo.objId"
|
||||
@change="setAddBondName(addAccountBondInfo.objId)" >
|
||||
<option selected disabled value="">必填,请选择物品类型</option>
|
||||
<option v-for="(item,index) in addAccountBondInfo.shopTypes"
|
||||
<option selected disabled value="">必填,请选择店铺类型</option>
|
||||
<option v-for="(item,index) in accountBondManageInfo.shopTypes"
|
||||
:key="index"
|
||||
v-bind:value="item.shopTypeId">
|
||||
{{item.typeName}}
|
||||
|
||||
@ -13,13 +13,11 @@
|
||||
bondMonth: '',
|
||||
objId: '',
|
||||
bondType: '6006',
|
||||
remark: '',
|
||||
shopTypes : []
|
||||
|
||||
remark: ''
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
$that._listAddShopTypes();
|
||||
|
||||
},
|
||||
_initEvent: 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){
|
||||
|
||||
$that.addAccountBondInfo.shopTypes.forEach(item => {
|
||||
$that.accountBondManageInfo.shopTypes.forEach(item => {
|
||||
if (item.shopTypeId == _objId) {
|
||||
$that.addAccountBondInfo.bondName = item.typeName;
|
||||
}
|
||||
@ -153,8 +129,7 @@
|
||||
bondMonth: '',
|
||||
objId: '',
|
||||
bondType: '6006',
|
||||
remark: '',
|
||||
shopTypes : []
|
||||
remark: ''
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
<option value="1000">小区内设备</option>
|
||||
<option value="2000">业主首页</option>
|
||||
<option value="3000">商圈首页</option>
|
||||
<option value="5000">家政首页</option>
|
||||
<option value="5000">服务首页</option>
|
||||
<option value="6000">便民首页</option>
|
||||
<option value="4000">员工首页</option>
|
||||
</select>
|
||||
|
||||
@ -18,13 +18,20 @@
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入店铺类型"
|
||||
v-model="accountBondManageInfo.conditions.objId" class=" form-control">
|
||||
<select class="custom-select" v-model="accountBondManageInfo.conditions.objId" >
|
||||
<option value="">请选择物品类型</option>
|
||||
<option v-for="(item,index) in accountBondManageInfo.shopTypes" :value="item.shopTypeId">
|
||||
{{item.typeName}}
|
||||
</option>
|
||||
</select>
|
||||
</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>
|
||||
|
||||
@ -16,11 +16,13 @@
|
||||
bondName: '',
|
||||
objId: '',
|
||||
|
||||
}
|
||||
},
|
||||
shopTypes : []
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
vc.component._listAccountBonds(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
$that._listAddShopTypes();
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
@ -76,7 +78,26 @@
|
||||
} else {
|
||||
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