|
楼主 |
发表于 2017-6-21 17:13:11
|
显示全部楼层
Model.prototype.modelLoad = function(event){
biz.Request.sendBizRequest({
"context" : this.getContext(),
"action" : "screenAction",
"callback" : function(data) {
if (data.state) {
//已经出库请请货单号
var store_apply_number = data.response
console.log(store_apply_number)
var dialogData = this.comp("dialogData");
console.log(store_apply_number)
//在门店请货的请货单号中排除这些单号
dialogData.setFilter("filter",apply_number != 'a_20170616_40'.apply_number != 'a_20170620_8' )
dialogData.refreshData(refreshData)
} else {
throw new Error("调用失败!|" + data.response.message);
}
}
});
获取到值了,但是在这个方法里,获取不到主表的值,显示this.comp("dialogData"); 不是一个方法 |
|