Commit 2efa6cf6 authored by 刘学辉's avatar 刘学辉

Merge remote-tracking branch 'origin/dev' into dev

parents 951a019d cad579bb
...@@ -536,6 +536,21 @@ function initPersonDialog() { ...@@ -536,6 +536,21 @@ function initPersonDialog() {
$('#regionName').val(data.BEZEI); $('#regionName').val(data.BEZEI);
} }
}); });
$('#bankCode').searchbox({
type: "system", name: "getBankInfo",
getParam: function (item) {
if (Public.isBlank($('#bankCountry').val())){
Public.tip("请先选择银行所属国家")
return false;
}
return {
BANKS: $('#bankCountry').val(),
}
},
onChange: function (value, data) {
$('#bankCode').val(data.BANKL);
}
});
} }
function sapMesShow(){ function sapMesShow(){
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<x:selectC dictionary="country" name="bankCountry" label="银行所属国家" labelCol="2" fieldCol="4" /> <x:selectC dictionary="country" name="bankCountry" label="银行所属国家" labelCol="2" fieldCol="4" />
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<x:inputC name="bankCode" label="银行代码" labelCol="4" fieldCol="8" /> <x:inputC name="bankCode" label="银行代码" labelCol="4" fieldCol="8" wrapper="select"/>
</div> </div>
</div> </div>
<div class="hg-form-row"> <div class="hg-form-row">
......
...@@ -11,7 +11,7 @@ function initialize(){ ...@@ -11,7 +11,7 @@ function initialize(){
borderTopWidth : 0 borderTopWidth : 0
}); });
$('#sapAssessMoveList').fileList({ $('#sapAssessMoveList').fileList({
bizId : $("#attbizId").val() bizId : $("#id").val()
}); });
UICtrl.layout("#layout", {leftWidth: 3}); UICtrl.layout("#layout", {leftWidth: 3});
} }
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<div id="maingrid" style="margin: 2px;"> <div id="maingrid" style="margin: 2px;">
</div> </div>
<div style="padding-top: 15px;"> <div style="padding-top: 15px;">
<x:fileList bizCode="sapAssessMove" bizId="attbizId" id="sapAssessMoveList" title="相关资料" /> <x:fileList bizCode="sapAssessMove" bizId="id" id="sapAssessMoveList" title="相关资料" />
</div> </div>
</form> </form>
</body> </body>
......
...@@ -5,6 +5,8 @@ $(document).ready(function () { ...@@ -5,6 +5,8 @@ $(document).ready(function () {
function initializateUI() { function initializateUI() {
UICtrl.layout("#layout", {leftWidth: 3}); UICtrl.layout("#layout", {leftWidth: 3});
var isCharge = $("#isCharge").val();
amountController(isCharge)
} }
function bindEvent() { function bindEvent() {
...@@ -43,8 +45,21 @@ function bindEvent() { ...@@ -43,8 +45,21 @@ function bindEvent() {
$('#unitName').val(data.MSEHL); $('#unitName').val(data.MSEHL);
} }
}); });
$("#isCharge").combox({onChange:function(data){
amountController(data.value)
}
})
} }
function amountController(value){
if ("1" == value){
UICtrl.setElHideOrShow("#amount",false)
UICtrl.setElRequiredFlag("#amount",true);
}else {
UICtrl.setElRequiredFlag("#amount",false);
UICtrl.setElHideOrShow("#amount",true)
}
}
function setId(value) { function setId(value) {
$('#id').val(value); $('#id').val(value);
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</head> </head>
<body> <body>
<div class="container-fluid"> <div class="container-fluid">
<x:billTitle title="无订单库存入库" needStatus="false" needPerson="true"/> <x:billTitle title="无订单库存入库情况说明" needStatus="false" needPerson="true"/>
<div class="blank_div clearfix"></div> <div class="blank_div clearfix"></div>
<form class="hg-form" method="post" action="" id="submitForm"> <form class="hg-form" method="post" action="" id="submitForm">
<x:hidden name="id"/> <x:hidden name="id"/>
...@@ -40,8 +40,9 @@ ...@@ -40,8 +40,9 @@
</div> </div>
<div class="hg-form-row"> <div class="hg-form-row">
<x:inputC name="werksName" required="true" label="工厂" labelCol="1" wrapper="select" fieldCol="2"/> <x:inputC name="werksName" required="true" label="工厂" labelCol="1" wrapper="select" fieldCol="2"/>
<x:inputC name="storeName" required="true" label="库存地点" labelCol="1" wrapper="select" 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="supplier" required="true" label="供应商" labelCol="1" fieldCol="2"/>
<x:inputC name="amount" required="false" label="总价值" labelCol="1" fieldCol="2" mask="positiveMoney"/>
</div> </div>
<div class="hg-form-row"> <div class="hg-form-row">
<x:textareaC name="reason" required="true" label="事由" labelCol="1" rows="3" fieldCol="6"/> <x:textareaC name="reason" required="true" label="事由" labelCol="1" rows="3" fieldCol="6"/>
......
...@@ -84,7 +84,7 @@ function updateHandler(row) { ...@@ -84,7 +84,7 @@ function updateHandler(row) {
UICtrl.addTabItem({ UICtrl.addTabItem({
tabid: 'nonOrderStorageDetail', tabid: 'nonOrderStorageDetail',
text: "查看无订单库存入库", text: "查看无订单库存入库",
url: web_app.name + '/nonOrderStorage/showNonOrderStorageDetail.job?isReadOnly=true&id=' + row.id url: web_app.name + '/nonOrderStorage/showNonOrderStorageDetail.job?isReadOnly=true&bizId=' + row.id
}) })
} }
......
...@@ -46,9 +46,10 @@ function getGridColumns() { ...@@ -46,9 +46,10 @@ function getGridColumns() {
{display: "库存地点", name: "lgort", width: "100", align: "left", type: "string"}, {display: "库存地点", name: "lgort", width: "100", align: "left", type: "string"},
{display: "库存地点的描述", name: "lgobe", width: "200", align: "left", type: "string"}, {display: "库存地点的描述", name: "lgobe", width: "200", align: "left", type: "string"},
{display: "含税单价", name: "netpr", width: "100", align: "left", type: "string"}, {display: "含税单价", name: "netpr", width: "100", align: "left", type: "string"},
{display: "价格单位", name: "peinh", width: "100", align: "left", type: "string"}, {display: "价格基数", name: "peinh", width: "100", align: "left", type: "string"},
{display: "税码", name: "mwskz", width: "100", align: "left", type: "string"}, //{display: "税码", name: "mwskz", width: "100", align: "left", type: "string"},
{display: "含税总价", name: "netwr", width: "100", align: "left", type: "string"}, {display: "进项税率(%)", name: "kbetr", width: "100", align: "left", type: "string"},
{display: "含税总额", name: "netwr", width: "100", align: "left", type: "string"},
{display: "退货项目", name: "retpo", width: "100", align: "left", type: "string"}, {display: "退货项目", name: "retpo", width: "100", align: "left", type: "string"},
{display: "总账科目", name: "sakto", width: "100", align: "left", type: "string"}, {display: "总账科目", name: "sakto", width: "100", align: "left", type: "string"},
{display: "成本中心", name: "kostl", width: "200", align: "left", type: "string"}, {display: "成本中心", name: "kostl", width: "200", align: "left", type: "string"},
......
...@@ -126,6 +126,9 @@ function getGridColumns() { ...@@ -126,6 +126,9 @@ function getGridColumns() {
// }, // },
// } // }
}, },
{display: "供应商名称", name: "lifnrName", width: "200", align: "left", type: "string",
editor: {required: false, type: "text"}
},
{display: "物料编码", name: "matnr", width: "200", align: "left", type: "string", {display: "物料编码", name: "matnr", width: "200", align: "left", type: "string",
editor: { editor: {
required: false, type: "select", required: false, type: "select",
......
...@@ -409,7 +409,24 @@ function loadSuppliersBankListGrid() { ...@@ -409,7 +409,24 @@ function loadSuppliersBankListGrid() {
}, },
{ {
display: "银行代码", name: "bankl", width: 200, minWidth: 60, type: "String", align: "left", display: "银行代码", name: "bankl", width: 200, minWidth: 60, type: "String", align: "left",
editor: {type: 'text', required: true } editor: {
required: true, type: "select",
data: {
type: 'system',
name: "getBankInfo",
getParam: function (item) {
return {BANKS: item.banks}
},
back: {
BANKL: "bankl",
BANKA: "banka",
}
},
}
},
{
display: "银行名称", name: "banka", width: 300, minWidth: 60, type: "String", align: "left",
//editor: {type: 'text', required: false}
}, },
{ {
display: "银行帐户号码", name: "bankn", width: 200, minWidth: 60, type: "String", align: "left", display: "银行帐户号码", name: "bankn", width: 200, minWidth: 60, type: "String", align: "left",
...@@ -431,10 +448,6 @@ function loadSuppliersBankListGrid() { ...@@ -431,10 +448,6 @@ function loadSuppliersBankListGrid() {
display: "对方开户行类型", name: "bvtyp", width: 160, minWidth: 60, type: "String", align: "left", display: "对方开户行类型", name: "bvtyp", width: 160, minWidth: 60, type: "String", align: "left",
editor: {type: 'text', required: false} editor: {type: 'text', required: false}
}, },
{
display: "银行名称", name: "banka", width: 200, minWidth: 60, type: "String", align: "left",
editor: {type: 'text', required: false}
},
{ {
display: "分行", name: "brnch", width: 200, minWidth: 60, type: "String", align: "left", display: "分行", name: "brnch", width: 200, minWidth: 60, type: "String", align: "left",
editor: {type: 'text', required: false} editor: {type: 'text', required: false}
......
...@@ -4,10 +4,7 @@ import cn.hutool.core.collection.CollectionUtil; ...@@ -4,10 +4,7 @@ import cn.hutool.core.collection.CollectionUtil;
import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.huigou.cache.DictUtil; import com.huigou.cache.DictUtil;
import com.huigou.topsun.sap.sapApplication.application.SapAreaApplication; import com.huigou.topsun.sap.sapApplication.application.*;
import com.huigou.topsun.sap.sapApplication.application.SapDictionaryApplication;
import com.huigou.topsun.sap.sapApplication.application.SapMaterialApplication;
import com.huigou.topsun.sap.sapApplication.application.SapPaymentApplication;
import com.huigou.topsun.sap.sapApplication.domain.query.SapDialogQuery; import com.huigou.topsun.sap.sapApplication.domain.query.SapDialogQuery;
import com.huigou.topsun.util.SAPUtils; import com.huigou.topsun.util.SAPUtils;
import com.huigou.uasp.annotation.ControllerMapping; import com.huigou.uasp.annotation.ControllerMapping;
...@@ -48,6 +45,8 @@ public class ResourceSearchController { ...@@ -48,6 +45,8 @@ public class ResourceSearchController {
private SapAreaApplication sapAreaApplication; private SapAreaApplication sapAreaApplication;
@Autowired @Autowired
private DictionaryApplication dictionaryApplication; private DictionaryApplication dictionaryApplication;
@Autowired
private SapBankInfoApplication sapBankInfoApplication;
@EasySearch(queryName = "knttp") @EasySearch(queryName = "knttp")
public Map<String, Object> knttpSelect(SDO sdo){ public Map<String, Object> knttpSelect(SDO sdo){
...@@ -333,6 +332,15 @@ public class ResourceSearchController { ...@@ -333,6 +332,15 @@ public class ResourceSearchController {
return this.initEasySearchModel( mapList, param, sdo); return this.initEasySearchModel( mapList, param, sdo);
} }
@EasySearch(queryName = "getBankInfo")
public Map<String, Object> getBankInfo(SDO sdo) throws IOException {
String param = sdo.getString("paramValue");
String BANKS = sdo.getString("BANKS");
List<Map<String, String>> mapList = new ArrayList<>();
mapList = sapBankInfoApplication.getBankInfo(BANKS);
return this.initEasySearchModel( mapList, param, sdo);
}
public Map<String,Object> initEasySearchModel(List<Map<String, String>> mapList,String param,SDO sdo){ public Map<String,Object> initEasySearchModel(List<Map<String, String>> mapList,String param,SDO sdo){
List<QuerySchemeField> fields = new ArrayList<>(); List<QuerySchemeField> fields = new ArrayList<>();
if (CollectionUtil.isNotEmpty(mapList)){ if (CollectionUtil.isNotEmpty(mapList)){
......
...@@ -97,6 +97,12 @@ public class NonOrderStorage extends FlowBillAbstractEntity { ...@@ -97,6 +97,12 @@ public class NonOrderStorage extends FlowBillAbstractEntity {
@Column(name = "message") @Column(name = "message")
private String message; private String message;
/**
* 总价值
*/
@Column(name = "amount")
private BigDecimal amount;
@Override @Override
protected String getCodeRuleId() { protected String getCodeRuleId() {
return "nonOrderStorage"; return "nonOrderStorage";
......
...@@ -147,6 +147,12 @@ public class SapPurchaseOrderItem extends AbstractEntity { ...@@ -147,6 +147,12 @@ public class SapPurchaseOrderItem extends AbstractEntity {
@Column(name = "MWSKZ") @Column(name = "MWSKZ")
private String mwskz; private String mwskz;
/**
* 税率
*/
@Column(name = "KBETR")
private String kbetr;
/** /**
* 总价 * 总价
......
...@@ -71,6 +71,9 @@ public class SapPurchaseOrderItemVo { ...@@ -71,6 +71,9 @@ public class SapPurchaseOrderItemVo {
@JsonProperty("MWSKZ") @JsonProperty("MWSKZ")
private String mwskz; private String mwskz;
@JsonProperty("KBETR")
private String kbetr;
@JsonProperty("NETWR") @JsonProperty("NETWR")
private Double netwr; private Double netwr;
......
...@@ -45,6 +45,12 @@ public class SapQualityInfoRecordItemVo implements Serializable { ...@@ -45,6 +45,12 @@ public class SapQualityInfoRecordItemVo implements Serializable {
@JsonProperty("LIEFERANT") @JsonProperty("LIEFERANT")
private String lieferant; private String lieferant;
/**
* 供应商名称
*/
@JsonProperty("ZMMVENNAME")
private String lifnrName;
/** /**
* 合格准入验证节点1 * 合格准入验证节点1
*/ */
......
package com.huigou.topsun.sap.sapApplication.application;
import java.io.IOException;
import java.util.List;
import java.util.Map;
/**
* @Auther: xin.lu
* @Date: 2024/04/09/15:03
* @Description:
*/
public interface SapBankInfoApplication {
/**
* 根据银行国家代码查询银行信息
* @param BANKS
* @return
* @throws IOException
*/
List<Map<String,String>> getBankInfo(String BANKS) throws IOException;
}
package com.huigou.topsun.sap.sapApplication.application.impl;
import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.huigou.topsun.sap.common.HttpClient;
import com.huigou.topsun.sap.common.domain.SapResult;
import com.huigou.topsun.sap.sapApplication.application.SapBankInfoApplication;
import com.huigou.topsun.util.SAPUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @Auther: xin.lu
* @Date: 2024/04/09/15:04
* @Description:
*/
@Service("sapBankInfoApplication")
public class SapBankInfoApplicationImpl implements SapBankInfoApplication {
@Autowired
private HttpClient httpClient;
@Override
public List<Map<String, String>> getBankInfo(String BANKS) throws IOException {
Map<String,String> param = new HashMap<>();
param.put("BANKS",BANKS);
List<Map<String,String>> paramList = new ArrayList<>();
paramList.add(param);
String execute = null;
List<Map<String,String>> mapList = new ArrayList<>();
try {
execute = httpClient.execute(paramList, "search/sch_bank_info");
Map<String, String> map = JSONObject.parseObject(execute, Map.class);
List<SapResult> sapResultList = JSONObject.parseArray(JSONUtil.toJsonStr(map.get("MSG")), SapResult.class);
if ("S".equals(sapResultList.get(0).getTYPE())) {
ObjectMapper objectMapper = SAPUtils.objectMapper();
mapList = objectMapper.readValue(com.huigou.util.JSONUtil.toString(map.get("RDATA")), new TypeReference<List<Map<String, String>>>() {});
}
} catch (IOException e) {
throw new RuntimeException("根据银行国家代码查询银行信息出错。");
}
return mapList;
}
}
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