mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化戴拿
This commit is contained in:
parent
b76061257e
commit
e40c831971
@ -16,7 +16,8 @@
|
|||||||
resourceStoreTypes: [],
|
resourceStoreTypes: [],
|
||||||
resourceStoreSonTypes: [],
|
resourceStoreSonTypes: [],
|
||||||
name: '',
|
name: '',
|
||||||
resOrderType: ''
|
resOrderType: '',
|
||||||
|
isAllocation:false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: { // 监视双向绑定的数据数组
|
watch: { // 监视双向绑定的数据数组
|
||||||
@ -32,7 +33,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod: function() {
|
_initMethod: function() {
|
||||||
$that._listStorehouses();
|
|
||||||
$that._listResourceStoreTypes();
|
$that._listResourceStoreTypes();
|
||||||
},
|
},
|
||||||
_initEvent: function() {
|
_initEvent: function() {
|
||||||
@ -40,6 +40,8 @@
|
|||||||
$('#chooseResourceStoreModel').modal('show');
|
$('#chooseResourceStoreModel').modal('show');
|
||||||
$that.chooseResourceStoreInfo.resOrderType = _param.resOrderType;
|
$that.chooseResourceStoreInfo.resOrderType = _param.resOrderType;
|
||||||
$that.chooseResourceStoreInfo.shId = _param.shId;
|
$that.chooseResourceStoreInfo.shId = _param.shId;
|
||||||
|
$that.chooseResourceStoreInfo.isAllocation = _param.isAllocation;
|
||||||
|
$that._listStorehouses();
|
||||||
$that._refreshChooseResourceStoreInfo();
|
$that._refreshChooseResourceStoreInfo();
|
||||||
$that._loadAllResourceStoreInfo(1, 10, '');
|
$that._loadAllResourceStoreInfo(1, 10, '');
|
||||||
});
|
});
|
||||||
@ -129,7 +131,7 @@
|
|||||||
$that.chooseResourceStoreInfo._currentResourceStoreName = "";
|
$that.chooseResourceStoreInfo._currentResourceStoreName = "";
|
||||||
},
|
},
|
||||||
_listStorehouses: function(_page, _rows) {
|
_listStorehouses: function(_page, _rows) {
|
||||||
var param = {
|
let param = {
|
||||||
params: {
|
params: {
|
||||||
page: 1,
|
page: 1,
|
||||||
row: 100,
|
row: 100,
|
||||||
@ -138,8 +140,11 @@
|
|||||||
communityId: vc.getCurrentCommunity().communityId
|
communityId: vc.getCurrentCommunity().communityId
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if( $that.chooseResourceStoreInfo.isAllocation){
|
||||||
|
param.params.communityId = '';
|
||||||
|
}
|
||||||
//发送get请求
|
//发送get请求
|
||||||
vc.http.apiGet('resourceStore.listStorehouses',
|
vc.http.apiGet('/resourceStore.listStorehouses',
|
||||||
param,
|
param,
|
||||||
function(json, res) {
|
function(json, res) {
|
||||||
var _storehouseManageInfo = JSON.parse(json);
|
var _storehouseManageInfo = JSON.parse(json);
|
||||||
|
|||||||
@ -114,6 +114,7 @@
|
|||||||
vc.emit('chooseResourceStore', 'openChooseResourceStoreModel', {
|
vc.emit('chooseResourceStore', 'openChooseResourceStoreModel', {
|
||||||
resOrderType: '20000',
|
resOrderType: '20000',
|
||||||
shId: $that.allocationStorehouseApplyInfo.shId,
|
shId: $that.allocationStorehouseApplyInfo.shId,
|
||||||
|
isAllocation:true
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
_listAllocationStorehouse: function(_page, _rows) {
|
_listAllocationStorehouse: function(_page, _rows) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user