-
用户A0918205(提问者)
- debugger;
var wo = _g().getWidgetByName("txtwo").getValue();
var mo = _g().getWidgetByName("txtmo").getValue();
var pa = _g().getWidgetByName("txtpa").getValue();
var min = _g().getWidgetByName("txtmin").getValue();
var mic = _g().getWidgetByName("txtmic").getValue();
var spk = _g().getWidgetByName("txtspc").getValue();
var xi = _g().getWidgetByName("txtxi").getValue();
var plug = _g().getWidgetByName("txtplug").getValue();
var bb = _g().getWidgetByName("txtbb").getValue();
var dv = _g().getWidgetByName("cbxdv").getValue();
var bg = _g().getWidgetByName("txtbg").getValue();
if (wo == "") {
FR.Msg.alert("警告", "请輸入工單!");
return false;
}
if (mo == "") {
FR.Msg.alert("警告", "请輸入機型!");
return false;
}
if (pa == "") {
FR.Msg.alert("警告", "请輸入料號!");
return false;
}
if (min == "") {
FR.Msg.alert("警告", "請輸入銘牌規格!");
return false;
}
if (mic == "") {
FR.Msg.alert("警告", "請輸入MIC規格!");
return false;
}
if (spk == "") {
FR.Msg.alert("警告", "請輸入SPK規格!");
return false;
}
if (xi == "") {
FR.Msg.alert("警告", "請輸入綫材規格!");
return false;
}
if (plug == "") {
FR.Msg.alert("警告", "請輸入PLUG規格!");
return false;
}
if (bb == "") {
FR.Msg.alert("警告", "請輸入標貼編號!");
return false;
}
if (dv == "") {
FR.Msg.alert("警告", "請選擇標題!");
return false;
}
if (bg == "") {
FR.Msg.alert("警告", "請輸入標貼規格!");
return false;
}
-
用户A0918205(提问者)
- 就一些简单的判断
-
用户A0918205(提问者)
- 还有一个回调函数
var wo = _g().getWidgetByName("txtwo").getValue();
var title = _g().getWidgetByName("cbxdv").getValue();
FR.ajax({
url: "/webroot/decision/sp/client/api/sql/AoiProcess",
data: {
'trantype': 'submitPqcDetail',
'strInfo': wo + '|' + title
},
dataType: "json", //跨域采用jsonp方式
timeout: 5000, //超時時間(單位:毫秒)
success: function(data) { //data參數視返回值情況而定
debugger;
//alert('123');
//_g().parameterCommit();
if (data.data[0].TRES != 'OK') {
FR.Msg.alert('警告', TRES);
} else {
FR.Msg.alert('警告', '添加表头及明细成功');
setTimeout(function() {
location.reload();
}, 1000);
//location.reload();
}
}
})
-
华莉星宸 回复 用户A0918205(提问者)
- 看着没什么毛病,你先把回调函数不要,确认的地方直接写提交属性呢
-
用户A0918205(提问者) 回复 华莉星宸
- 报这个错是偶发性的,但频率有点高。
|