Commit 99292591 authored by 鲁鑫's avatar 鲁鑫

无订单库存入库情况说明物料选择

parent 26b601c4
......@@ -5,6 +5,10 @@ $(document).ready(function () {
function initializateUI() {
UICtrl.layout("#layout", {leftWidth: 3});
$('#nonOrderStorageList').fileList({
bizId : $("#id").val()
});
var isCharge = $("#isCharge").val();
amountController(isCharge)
}
......@@ -49,6 +53,27 @@ function bindEvent() {
amountController(data.value)
}
})
$('#productName').searchbox({
type: "system", name: "sapMaterialSelect",
getParam: function (item) {
if (Public.isBlank($('#werks').val())){
Public.tip("请先选择工厂!")
return false
}
return {
/// fieldName: "sapMaterialSelect",
filterValue: $('#werks').val()
}
},
onChange: function (value, data) {
$('#productName').val(data.MAKTX);
$('#unit').val(data.MEINS);
$('#unitName').val(data.MSEHL);
$('#store').val(data.LGFSB);
$('#storeName').val(data.LGOBE);
}
});
}
function amountController(value){
......@@ -62,6 +87,9 @@ function amountController(value){
}
function setId(value) {
$('#id').val(value);
$('#nonOrderStorageList').fileList({
bizId : value
});
}
function getId() {
......
......@@ -3,7 +3,7 @@
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<x:base include="layout,dialog,grid,tree,combox,commonTree,date"/>
<x:base include="layout,dialog,grid,tree,combox,commonTree,date,attachment"/>
<x:script src='/biz/topsun/sap/nonOrderStorage/nonOrderStorageDetail.js'/>
</head>
<body>
......@@ -33,13 +33,13 @@
<x:hidden name="message"/>
<div class="hg-form-cols">
<div class="hg-form-row">
<x:inputC name="productName" required="true" label="品名" labelCol="1" maxLength="64" fieldCol="2"/>
<x:inputC name="werksName" required="true" label="工厂" labelCol="1" wrapper="select" fieldCol="2"/>
<x:inputC name="productName" required="true" label="品名" labelCol="1" maxLength="64" fieldCol="2" wrapper="select"/>
<x:inputC name="number" required="true" label="数量" labelCol="1" maxLength="64" fieldCol="2"/>
<x:inputC name="unitName" required="true" label="单位" labelCol="1" wrapper="select" fieldCol="2"/>
<x:selectC name="isCharge" required="true" label="是否收费" labelCol="1" dictionary="yesorno" fieldCol="2"/>
</div>
<div class="hg-form-row">
<x:inputC name="werksName" required="true" label="工厂" labelCol="1" wrapper="select" fieldCol="2"/>
<x:selectC name="isCharge" required="true" label="是否收费" labelCol="1" dictionary="yesorno" fieldCol="2"/>
<x:inputC name="storeName" required="false" label="库存地点" labelCol="1" wrapper="select" fieldCol="2"/>
<x:inputC name="supplier" required="true" label="供应商" labelCol="1" fieldCol="2"/>
<x:inputC name="amount" required="false" label="总价值" labelCol="1" fieldCol="2" mask="positiveMoney"/>
......@@ -48,7 +48,9 @@
<x:textareaC name="reason" required="true" label="事由" labelCol="1" rows="3" fieldCol="6"/>
</div>
</div>
<div style="padding-top: 15px;">
<x:fileList bizCode="nonOrderStorage" bizId="id" id="nonOrderStorageList" title="附件" />
</div>
</form>
</div>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment