|
|
@ -6,8 +6,8 @@ |
|
|
|
<link th:href="@{/ajax/libs/element-ui/element-ui.css}" rel="stylesheet"/> |
|
|
|
</head> |
|
|
|
<body class="white-bg"> |
|
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|
|
|
<form class="form-horizontal m" id="form-supplier-detail" th:object="${sysSupplier}"> |
|
|
|
<div id="app" class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|
|
|
<form class="form-horizontal m" id="form-supplier-detail" th:object="${sysSupplier}"> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label is-required">供应商编号:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
@ -206,7 +206,7 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">采购员:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<select id="purchaseBuyer_add" name="purchaseBuyer" class="form-control" disabled></select> |
|
|
|
<select id="purchaseBuyer_add" th:field="*{purchaseBuyer}" name="purchaseBuyer" class="form-control" disabled></select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
@ -321,27 +321,6 @@ |
|
|
|
$("#form-supplier-detail").validate({ |
|
|
|
focusCleanup: true |
|
|
|
}); |
|
|
|
$(function(){ |
|
|
|
$.ajax({ |
|
|
|
url: ctx + 'system/user/cutomerList', |
|
|
|
type: 'post', |
|
|
|
success: function (res) { |
|
|
|
if (res.rows.length > 0) { |
|
|
|
var usertData = res.rows; |
|
|
|
for (let i in usertData) { |
|
|
|
$("#form-supplier-edit select[name='purchaseBuyer']").append( |
|
|
|
"<option value='" + usertData[i].userName + "'>" + usertData[i].userName + "</option>"); |
|
|
|
} |
|
|
|
$("#form-supplier-edit select[name='purchaseBuyer']").val(sysSupplier.purchaseBuyer).trigger("change"); |
|
|
|
} else { |
|
|
|
$.modal.msgError(res.msg); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$("input[name='confirmFax']").val(sysSupplier.confirmFax); |
|
|
|
$("input[name='supplierType']").val(sysSupplier.supplierType); |
|
|
|
$("input[name='supplierQualification']").val(sysSupplier.supplierQualification); |
|
|
|
}) |
|
|
|
</script> |
|
|
|
</body> |
|
|
|
</html> |