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.
 
 
 
 
 

71 lines
1.8 KiB

@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Form.cshtml";
}
<script >
debugger;
$(() => {
$.ajax({
url: "GetHighWareMsg?" + Math.random(),
dataType: "json",
async: false,
success: function (dataObj) {
debugger;
if (dataObj != null && dataObj.data.length > 0) {
for (var i = 0; i < dataObj.data.length; i++) {
var warehouseCode = dataObj.data[i].WarehouseCode;
var WareHouseName = dataObj.data[i].WareHouseName;
const option = $('<option>', {
value: warehouseCode,
text: WareHouseName
});
$("#wareHouseCode").append(option);
}
}
}
});
});
function submitForm()
{
debugger;
var value = $("#wareHouseCode").val();
var text = $("#wareHouseCode option:selected").text();
var type = $("#type").val();
if (!value)
{
$.modalAlert("请选择立库仓库!");
return false;
}
if (confirm("当前选择的仓库:" + text + ",确认吗?"))
return true;
else
return false;
}
</script>
<form id="form1">
<div style="padding-top: 20px; margin-right: 20px;">
<table class="form">
<tr>
<th class="formTitle">仓库编码</th>
<td class="formValue">
<select id="wareHouseCode" class="form-control" style="height:auto;" ></select>
</td>
</tr>
</table>
</div>
</form>