保证金查询功能、连续添加类型失效

This commit is contained in:
shane 2021-07-10 13:34:48 +08:00
parent 2fd36cc069
commit ac962cea64
5 changed files with 41 additions and 38 deletions

View File

@ -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}}

View File

@ -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: ''
};
}

View File

@ -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>

View File

@ -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>

View File

@ -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('请求失败处理');
}
);
},
}