Commit b25b7223 authored by 鲁鑫's avatar 鲁鑫

固定资产接口

parent 29ed012a
......@@ -16,6 +16,39 @@ function bindQueryEvent() {
$('#kostl').val(data.kostl);
}
});
$('#kostlv').searchbox({
type: "costCenter", name: "costCenterCode",
onChange: function (value, data) {
$('#kostlv').val(data.kostl);
}
});
$('#anlkl').searchbox({
type: "system", name: "dictionary",
getParam: function (item) {
return {paramValue: "ANLKL"}
},
onChange: function (value, data) {
$('#anlkl').val(data.ANLKL);
}
});
$('#bukrs').searchbox({
type: "system", name: "dictionary",
getParam: function (item) {
return {paramValue: "BUKRS"}
},
onChange: function (value, data) {
$('#bukrs').val(data.BUKRS);
}
});
$('#meins').searchbox({
type: "system", name: "dictionary",
getParam: function (item) {
return {paramValue: "MEINS"}
},
onChange: function (value, data) {
$('#meins').val(data.MSEHI);
}
});
}
function getFixedAssetsDetail(fixedAssetsAction) {
......
......@@ -32,15 +32,15 @@
<x:hidden name="personMemberName"/>
<x:hidden name="statusId"/>
<div class="hg-form-row">
<x:inputC name="anln1" required="true" label="主资产号" labelCol="2" maxLength="64" fieldCol="4"/>
<x:inputC name="anlkl" required="true" label="资产分类" labelCol="2" maxLength="64" fieldCol="4"/>
<x:inputC name="bukrs" required="true" label="公司代码" labelCol="2" maxLength="64" fieldCol="4"/>
<x:inputC name="anln1" required="false" readonly="true" label="主资产号" labelCol="2" maxLength="64" fieldCol="4"/>
<x:inputC name="anlkl" required="true" label="资产分类" labelCol="2" maxLength="64" fieldCol="4" wrapper="select"/>
<x:inputC name="bukrs" required="true" label="公司代码" labelCol="2" maxLength="64" fieldCol="4" wrapper="select"/>
<x:inputC name="txt50" required="true" label="文本" labelCol="2" maxLength="64" fieldCol="4"/>
<x:inputC name="invnr" required="false" label="存货号" labelCol="2" maxLength="64" fieldCol="4" />
<x:inputC name="menge" required="true" label="数量" labelCol="2" maxLength="64" fieldCol="4" />
<x:inputC name="meins" required="true" label="基本计量单位" labelCol="2" maxLength="64" fieldCol="4"/>
<x:inputC name="meins" required="true" label="基本计量单位" labelCol="2" maxLength="64" fieldCol="4" wrapper="select"/>
<x:inputC name="kostl" required="true" label="成本中心" labelCol="2" wrapper="select" fieldCol="4"/>
<x:inputC name="kostlv" required="true" label="责任成本中心" labelCol="2" maxLength="64" fieldCol="4"/>
<x:inputC name="kostlv" required="true" label="责任成本中心" labelCol="2" maxLength="64" fieldCol="4" wrapper="select"/>
</div>
<div class="blank_div clearfix"></div>
</form>
......
......@@ -101,6 +101,7 @@ public class SapFixedAssetsApplicationImpl extends FlowBroker implements SapFixe
}
fixedAssets.setType(assets.getType());
fixedAssets.setMessage(assets.getMessage());
fixedAssets.setAnln1(assets.getMessageV1());
} catch (IOException e) {
throw new RuntimeException(e);
}
......@@ -113,7 +114,7 @@ public class SapFixedAssetsApplicationImpl extends FlowBroker implements SapFixe
private List<SapFixedAssetsReturnVo> getReturnVo(SapFixedAssets fixedAssets) {
SapFixedAssetsReturnVo sapFixedAssetsReturnVo = new SapFixedAssetsReturnVo();
BeanUtils.copyProperties(fixedAssets, sapFixedAssetsReturnVo);
sapFixedAssetsReturnVo.setAnln1("0");
List<SapFixedAssetsReturnVo> sapFixedAssetsReturnVos = new ArrayList<>();
sapFixedAssetsReturnVos.add(sapFixedAssetsReturnVo);
return sapFixedAssetsReturnVos;
......
......@@ -100,6 +100,12 @@ public class SapFixedAssets extends FlowBillAbstractEntity {
@Column(name = "MESSAGE")
private String message;
/**
* 消息文本
*/
@Column(name = "MESSAGE_V1")
private String messageV1;
@Override
protected String getCodeRuleId() {
return "sapFixedAssets";
......@@ -225,4 +231,12 @@ public class SapFixedAssets extends FlowBillAbstractEntity {
public void setMessage(String message) {
this.message = message;
}
public String getMessageV1() {
return messageV1;
}
public void setMessageV1(String messageV1) {
this.messageV1 = messageV1;
}
}
\ No newline at end of file
......@@ -10,4 +10,18 @@
"MEINS": "1",
"KOSTL": "666666",
"KOSTLV": "1"
},
{
"ZBPMN": "ZC2024-00023",
"ZFLG": 1,
"ANLN1": "01",
"ANLKL": "Z201",
"BUKRS": "1000",
"TXT50": "BSNG",
"INVNR": "",
"MENGE": 11.00,
"MEINS": "个",
"KOSTL": "3000G69000",
"KOSTLV": "3000G69000"
}
\ No newline at end of file
......@@ -92,7 +92,7 @@ public class SapFixedAssetsReturnVo implements Serializable {
this.zfibpmnr = zfibpmnr;
}
public Integer getZflg() {
public Integer getZfiflg() {
return zfiflg;
}
......
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