|
楼主 |
发表于 2017-6-6 19:01:42
|
显示全部楼层
本帖最后由 一诺佳人 于 2017-6-6 19:25 编辑
F12显示,row =event.row 的row=null,等于我的grid里输出的值,不知道什么原因,跟event.row不匹配?不知道怎么调试了?我这个.w文件是的源码是:- define(function(require){
- var $ = require("jquery");
- var justep = require("$UI/system/lib/justep");
- var biz = require("$UI/system/lib/biz");
- var Model = function(){
- this.callParent();
- };
- //加载库存数据
- Model.prototype.stockDataCustomRefresh = function(event){
- var actionParam = new biz.Request.ActionParam();
- var mapParam = new biz.Request.MapParam();
- mapParam.put("fWhID",this.comp("statusData").val("fWhID"));
- actionParam.setMap("variables",mapParam);
- biz.Request.sendBizRequest({
- dataType:"json",
- context:this.getContext(),
- parameters:actionParam,
- action:"ksqlCurrentStock",
- callback:function(result){
- if(result.state){
- var append =event.options && event.options.append;
- event.source.loadData(result.response, append);
- }
- }
- })
- };
- //加载当前库存数据
- Model.prototype.button1Click = function(event){
- if(this.comp("statusData").getValue("fWhID"))
- this.comp("stockData").refreshData();
- };
- Model.prototype.button2Click = function(event){
- if(this.comp("stockData").count()>0)
- this.comp("report1").exportExcel();
- };
- //双击打开对应物料在对应货位上的出入库记录
- Model.prototype.grid1RowDblClick = function(event){
- var row = event.row;
- debugger;
- justep.Shell.showPage({url:"$UI/DEMOERP/DEMOERP/process/stockMoveQuery/mainActivity.w",
- title:'物料移动查询',
- // process:"/DEMOERP/DEMOERP/process/stockMoveQuery/stockMoveQueryProcess",
- // activity:"mainActivity",
- fArticleID:row.val("fArticleID"),
- fWhID:row.val("fWhID")
- },false);
- };
- return Model;
- });
复制代码
|
-
|