You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
589 B
25 lines
589 B
var data = [] |
|
|
|
for (i = 0; i < len; i++) { |
|
var factory = _g().getCellValue(0, 1, i + 4); |
|
//获取B5的扩展值 |
|
var wl = _g().getCellValue(0, 2, i + 4); |
|
//获取C5的扩展值 |
|
data.push({ |
|
"MATNR": wl, |
|
"WERKS": factory |
|
}) |
|
} |
|
$.ajax({ |
|
url: "/webroot/decision/url/sapApi", |
|
type: "POST", |
|
contentType: "application/json", |
|
data: JSON.stringify(data), |
|
dataType: "json", |
|
success: function (e) { |
|
alert("提交响应:" + e) |
|
}, |
|
error: function () { |
|
alert("提交失败请联系技术支持查看日志") |
|
} |
|
})
|
|
|