Commit d753d9a9 authored by 鲁鑫's avatar 鲁鑫

废品销售单SAP接口调试

parent 4456c68b
...@@ -63,10 +63,17 @@ function getGridColumns(){ ...@@ -63,10 +63,17 @@ function getGridColumns(){
display: "序号", name: "sequence", width: 100, minWidth: 60, type: "string", align: "left", display: "序号", name: "sequence", width: 100, minWidth: 60, type: "string", align: "left",
},) },)
columns.push({ columns.push({
display: "品类", name: "wasteType", width: 200, minWidth: 60, type: "string", align: "left", display: "品类", name: "wasteTypeTextView", width: 200, minWidth: 60, type: "string", align: "left",
editor: { editor: {
required: true, type: "text" type: 'dictionary',
} data: {name: 'wasteType'},
textField: 'wasteTypeTextView',
valueField: 'wasteType',
required: true,
render: function (item) {
return item.wasteTypeTextView;
}
},
},) },)
columns.push({ columns.push({
display: "数量", name: "quantity", width: 200, minWidth: 60, type: "string", align: "left", display: "数量", name: "quantity", width: 200, minWidth: 60, type: "string", align: "left",
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</div> </div>
<div class="hg-form-cols"> <div class="hg-form-cols">
<div class="hg-form-row"> <div class="hg-form-row">
<x:inputC name="paymentMethod" required="false" label="收款方式" labelCol="2" fieldCol="2" /> <x:selectC name="paymentMethod" required="false" dictionary="paymentMethod" label="收款方式" labelCol="2" fieldCol="2" />
<x:inputC name="totalMoney" readonly="true" label="合计" labelCol="2" fieldCol="2" /> <x:inputC name="totalMoney" readonly="true" label="合计" labelCol="2" fieldCol="2" />
</div> </div>
</div> </div>
......
...@@ -21,7 +21,7 @@ function loadGrid() { ...@@ -21,7 +21,7 @@ function loadGrid() {
{display: "公司代码", name: "burks", width: 200, minWidth: 60, type: "string", align: "left"}, {display: "公司代码", name: "burks", width: 200, minWidth: 60, type: "string", align: "left"},
{display: "回收商", name: "bktxt", width: 200, minWidth: 60, type: "string", align: "left"}, {display: "回收商", name: "bktxt", width: 200, minWidth: 60, type: "string", align: "left"},
{display: "回收日期", name: "budat", width: 200, minWidth: 60, type: "string", align: "left"}, {display: "回收日期", name: "budat", width: 200, minWidth: 60, type: "string", align: "left"},
{display: "收款方式", name: "paymentMethod", width: 200, minWidth: 60, type: "string", align: "left"}, {display: "收款方式", name: "paymentMethodTextView", width: 200, minWidth: 60, type: "string", align: "left"},
{display: "合计", name: "totalMoney", width: 200, minWidth: 60, type: "string", align: "left"}, {display: "合计", name: "totalMoney", width: 200, minWidth: 60, type: "string", align: "left"},
{display: "消息类型", name: "type", width: 100, minWidth: 60, type: "string", align: "left"}, {display: "消息类型", name: "type", width: 100, minWidth: 60, type: "string", align: "left"},
{display: "会计凭证编号", name: "messageV1", width: 200, minWidth: 60, type: "string", align: "left"}, {display: "会计凭证编号", name: "messageV1", width: 200, minWidth: 60, type: "string", align: "left"},
......
...@@ -91,7 +91,7 @@ public class WasteSaleApplicationImpl extends FlowBroker implements WasteSaleApp ...@@ -91,7 +91,7 @@ public class WasteSaleApplicationImpl extends FlowBroker implements WasteSaleApp
sapWasteSaleItemVo.setShkzg("S"); sapWasteSaleItemVo.setShkzg("S");
sapWasteSaleItemVo.setKoart("S"); sapWasteSaleItemVo.setKoart("S");
sapWasteSaleItemVo.setBschl("40"); sapWasteSaleItemVo.setBschl("40");
sapWasteSaleItemVo.setKtonr("1001010000"); sapWasteSaleItemVo.setKtonr(wasteSale.getPaymentMethod());
sapWasteSaleItemVo.setWrbtr(wasteSaleItem.getAmount().toString()); sapWasteSaleItemVo.setWrbtr(wasteSaleItem.getAmount().toString());
sapWasteSaleItemVo.setSgtxt("废品回收-"+wasteSaleItem.getWasteType()+"-"+wasteSaleItem.getQuantity()+wasteSaleItem.getUnit()+"-"+wasteSaleItem.getAmount()); sapWasteSaleItemVo.setSgtxt("废品回收-"+wasteSaleItem.getWasteType()+"-"+wasteSaleItem.getQuantity()+wasteSaleItem.getUnit()+"-"+wasteSaleItem.getAmount());
sapWasteSaleItemVo.setRstgr("113"); sapWasteSaleItemVo.setRstgr("113");
...@@ -118,7 +118,7 @@ public class WasteSaleApplicationImpl extends FlowBroker implements WasteSaleApp ...@@ -118,7 +118,7 @@ public class WasteSaleApplicationImpl extends FlowBroker implements WasteSaleApp
throw new RuntimeException("数据传输失败,"+ sapResult.getMESSAGE()); throw new RuntimeException("数据传输失败,"+ sapResult.getMESSAGE());
} }
wasteSale.setType(sapResult.getTYPE()); wasteSale.setType(sapResult.getTYPE());
wasteSale.setMessageV1(sapResult.getMESSAGE_V2()); wasteSale.setMessageV1(sapResult.getMESSAGE_V2().substring(0,10));
wasteSaleRepository.save(wasteSale); wasteSaleRepository.save(wasteSale);
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
......
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