smartclient 传递多个参数

addBarcodeHead:function(value){
			if(value){
			var focusNode = this;
				var bar = findForm.getField("barcode").getValue();
				console.log(bar);
				var headId = BarcodeHead.getSelectedRecord().recId;
				RPCManager.sendRequest({
					paramsOnly:true,
					actionURL:"BarCode/insertBarcode.action",
					params:{inputbarcode:bar,headID:headId},
					callback:function(data){
						var msg = data.data.split(",")[0].split(":")[1];
						var barcode = data.data.split(",")[1].split(":")[1];
						console.log("test-->"+barcode);
						var line = "barcodeline";
						var head = "barcodehead";
						if(barcode.contains(head)){
							BarcodeHead.invalidateCache();
							isc.say("温馨提示"+msg);
						}else if (barcode.contains(line)){
							console.log("headId"+headId);
							var FKRecId = { PickListTableRecId:headId };
							LineList.invalidateCache();
							isc.say("温馨提示:" + msg );
							LineList.filterData(FKRecId); 
						}else{
							isc.say("温馨提示:"+msg);
						}
					}
				})
			}else{
				//isc.say("您取消添加单头");
			}
			findForm.getFields()[0].setValue()=" "; // 清空条码输入框中的值  組件findForm點方法設置文本框中的值
		}

你可能感兴趣的:(function,callback)