泛微表单字段值修改时,调用外部接口赋值给明细表,此处接口没有token认证,为appkey,代码如下:jQuery(document).ready(function () { WfForm.bindFieldChangeEvent("field14912", function (obj, id, value) { console.log("field14912 change:", value); // 字段变化立即清空明细表 WfForm.delDetailRow("detail_1", "all"); // 空值直接返回 if (!value || value.trim() === '') { return; } // 请求接口 var url = 'http://192.168.123.123/getXXX?appkey=45467677b95098f7ec5applyDate='+ encodeURIComponent(value); jQuery.ajax({ url: url, type: "GET", dataType: "json", success: function (summaryResponse) { if (!summaryResponse || !Array.isArray(summaryResponse.rows)) {
泛微字段值修改调用接口
泛微表单字段值修改时,调用外部接口赋值给明细表,此处接口没有token认证,为appkey,代码如下:jQuery(document).ready(function () { WfForm.bindFieldChangeEvent("field14912", function (obj, id, value) { console.log("field14912 change:", value); // 字段变化立即清空明细表 WfForm.delDetailRow("detail_1", "all"); // 空值直接返回 if (!value || value.trim() === '') { return; } // 请求接口 var url = 'http://192.168.123.123/getXXX?appkey=45467677b95098f7ec5applyDate='+ encodeURIComponent(value); jQuery.ajax({ url: url, type: "GET", dataType: "json", success: function (summaryResponse) { if (!summaryResponse || !Array.isArray(summaryResponse.rows)) {