Commit 604d8c39 authored by 1650842865's avatar 1650842865

刀模板具不维护存储条件和仓库视图

parent a95068f8
...@@ -58,6 +58,20 @@ function initializate() { ...@@ -58,6 +58,20 @@ function initializate() {
$("#lgort").val("1099"); $("#lgort").val("1099");
$("#lgortName").val("客供料专用库"); $("#lgortName").val("客供料专用库");
} }
//刀工模板具
if ((data.value == "ZGMB")){
$("#raube").val("");
Public.tip("刀工模板具不维护仓库管理视图");
$("#businessUsageS").prop("checked",false);
}else {
if ($("#werks").val() == "1010"){
Public.tip("广州市宝绅科技有限公司RFID工厂不维护仓库管理视图");
$("#businessUsageS").prop("checked",false);
}else {
$("#businessUsageS").prop("checked",true);
}
bindEvent_raube($('#werks').val(),$("#lgort").val());
}
bindEvent_mrp(data.value) bindEvent_mrp(data.value)
bindEvent_produce(data.value); bindEvent_produce(data.value);
bindEvent_warehouse(data.value); bindEvent_warehouse(data.value);
...@@ -92,6 +106,9 @@ function initializate() { ...@@ -92,6 +106,9 @@ function initializate() {
//存储分区标识 //存储分区标识
$("#lgbkz").val("001"); $("#lgbkz").val("001");
//倒冲标志 :默认0
$("#rgekz").val("0");
switch ($("#active").val()) { switch ($("#active").val()) {
case '0'://待填报 case '0'://待填报
// $("#businessUsageDiv").hide(); // $("#businessUsageDiv").hide();
...@@ -145,7 +162,7 @@ function initializate() { ...@@ -145,7 +162,7 @@ function initializate() {
$("#busiLens").val(dictUsage.length); $("#busiLens").val(dictUsage.length);
coRowNum=dictUsage.length; coRowNum=dictUsage.length;
for (var x=0;x<$("input[name='businessUsage']").length;x++) { for (var x=0;x<$("input[name='businessUsage']").length;x++) {
if ("1010" == $("#werks").val() && x == 5){ if (("1010" == $("#werks").val() || "ZGMB" == $("#mtart").val()) && x == 5){
$("input[name='businessUsage']")[x].checked = false; $("input[name='businessUsage']")[x].checked = false;
}else { }else {
$("input[name='businessUsage']")[x].checked = true; $("input[name='businessUsage']")[x].checked = true;
...@@ -169,6 +186,15 @@ function initializate() { ...@@ -169,6 +186,15 @@ function initializate() {
coRowNum=MathUtil.add(coRowNum,1); coRowNum=MathUtil.add(coRowNum,1);
showBusiness($(this).val()); showBusiness($(this).val());
if ("S"== $(this).val() ){
$("#businessUsageS").prop("checked",false);
if ($("#werks").val() == "1010"){
Public.tip("广州市宝绅科技有限公司RFID工厂不维护仓库管理视图");
}
if ($("#mtart").val() == "ZGMB"){
Public.tip("刀工模板具不维护仓库管理视图");
}
}
if (coRowNum==dictUsage.length){ if (coRowNum==dictUsage.length){
$('input[name="isAll"]')[0].checked = true; $('input[name="isAll"]')[0].checked = true;
} }
...@@ -397,15 +423,21 @@ function bindEvent() { ...@@ -397,15 +423,21 @@ function bindEvent() {
$("#lgnumName").val("广州宝绅印刷工厂仓库"); $("#lgnumName").val("广州宝绅印刷工厂仓库");
} }
var mtart = $("#mtart").val();
if (mtart != "ZGMB" ){
//选择了工厂和库存地点后,带出存储条件
bindEvent_raube(data.WERKS,$('#lgort').val());
if (data.WERKS == "1010" && $("input[name='businessUsage']")[5].checked){ if (data.WERKS == "1010" && $("input[name='businessUsage']")[5].checked){
Public.tip("广州市宝绅科技有限公司RFID工厂不维护仓库管理视图"); Public.tip("广州市宝绅科技有限公司RFID工厂不维护仓库管理视图");
$("#businessUsageS").prop("checked",false); $("#businessUsageS").prop("checked",false);
//return false;
}else { }else {
$("#businessUsageS").prop("checked",true); $("#businessUsageS").prop("checked",true);
} }
//选择了工厂和库存地点后,带出存储条件 }else {
bindEvent_raube(data.WERKS,$('#lgort').val()); Public.tip("刀工模板具不维护仓库管理视图");
$("#businessUsageS").prop("checked",false);
}
//选择了工厂、库存地点、仓库号,带出存储类型和上下架存储类型 //选择了工厂、库存地点、仓库号,带出存储类型和上下架存储类型
bindEvent_lgtyp(data.WERKS,$('#lgort').val(),$('#lgnum').val()); bindEvent_lgtyp(data.WERKS,$('#lgort').val(),$('#lgnum').val());
...@@ -438,8 +470,12 @@ function bindEvent() { ...@@ -438,8 +470,12 @@ function bindEvent() {
$("#lgnum").val("W00"); $("#lgnum").val("W00");
$("#lgnumName").val("广州宝绅印刷工厂仓库"); $("#lgnumName").val("广州宝绅印刷工厂仓库");
} }
var mtart = $("#mtart").val();
if (mtart != "ZGMB" ){
//选择了工厂和库存地点后,带出存储条件 //选择了工厂和库存地点后,带出存储条件
bindEvent_raube($('#werks').val(),data.LGORT); bindEvent_raube($('#werks').val(),data.LGORT);
}
//选择了工厂、库存地点、仓库号,带出存储类型和上下架存储类型 //选择了工厂、库存地点、仓库号,带出存储类型和上下架存储类型
bindEvent_lgtyp($('#werks').val(),data.LGORT,$('#lgnum').val()); bindEvent_lgtyp($('#werks').val(),data.LGORT,$('#lgnum').val());
......
...@@ -135,7 +135,7 @@ function loadNonProdApplyListGrid() { ...@@ -135,7 +135,7 @@ function loadNonProdApplyListGrid() {
{display: "尺码", name: "size", width: 140, minWidth: 60, type: "string", align: "left"}, {display: "尺码", name: "size", width: 140, minWidth: 60, type: "string", align: "left"},
{display: "品牌", name: "brand", width: 140, minWidth: 60, type: "string", align: "left"}, {display: "品牌", name: "brand", width: 140, minWidth: 60, type: "string", align: "left"},
{display: "用途", name: "materialUsage", width: 140, minWidth: 60, type: "string", align: "left"}, {display: "用途", name: "materialUsage", width: 140, minWidth: 60, type: "string", align: "left"},
{display: "物品属性", name: "itemAttributesTextView", width: 140, minWidth: 60, type: "string", align: "left"}, {display: "物品类型", name: "mtartTextView", width: 140, minWidth: 60, type: "string", align: "left"},
{display: "业务用途", name: "businessUsageTextView", width: 300, minWidth: 60, type: "string", align: "left"}, {display: "业务用途", name: "businessUsageTextView", width: 300, minWidth: 60, type: "string", align: "left"},
{display: "文本说明", name: "textDescription", width: 140, minWidth: 60, type: "string", align: "left"}, {display: "文本说明", name: "textDescription", width: 140, minWidth: 60, type: "string", align: "left"},
{display: "批准人", name: "approver", width: 100, minWidth: 60, type: "string", align: "left"}, {display: "批准人", name: "approver", width: 100, minWidth: 60, type: "string", align: "left"},
......
...@@ -15,7 +15,7 @@ $(document).ready(function () { ...@@ -15,7 +15,7 @@ $(document).ready(function () {
function initializate() { function initializate() {
// UICtrl.setDisable("#businessUsageDiv") UICtrl.disable("#mtart")
UICtrl.setDisable("#totalContentDiv"); UICtrl.setDisable("#totalContentDiv");
coRowNum= $("#busiLens").val(); coRowNum= $("#busiLens").val();
initKlart($("#mtart").val()); initKlart($("#mtart").val());
...@@ -77,8 +77,12 @@ function initializate() { ...@@ -77,8 +77,12 @@ function initializate() {
// $("#businessUsageDiv").hide(); // $("#businessUsageDiv").hide();
hideAllBusiness(false); //隐藏但不清理值 hideAllBusiness(false); //隐藏但不清理值
for (var x=0;x<$("input[name='businessUsage']").length;x++) { for (var x=0;x<$("input[name='businessUsage']").length;x++) {
var value = $("input[name='businessUsage']")[x].value;
if ("S" == value){
$("#businessUsageS").prop("checked",false);
}
if ($("input[name='businessUsage']")[x].checked) { if ($("input[name='businessUsage']")[x].checked) {
showBusiness($("input[name='businessUsage']")[x].value); showBusiness(value);
} }
} }
if ($("#deptCode").val() === "system") { if ($("#deptCode").val() === "system") {
...@@ -124,7 +128,7 @@ function initializate() { ...@@ -124,7 +128,7 @@ function initializate() {
$("#busiLens").val(dictUsage.length); $("#busiLens").val(dictUsage.length);
coRowNum=dictUsage.length; coRowNum=dictUsage.length;
for (var x=0;x<$("input[name='businessUsage']").length;x++) { for (var x=0;x<$("input[name='businessUsage']").length;x++) {
if ("1010" == $("#werks").val() && x == 5){ if (("1010" == $("#werks").val() || "ZGMB" == $("#mtart").val()) && x == 5){
$("input[name='businessUsage']")[x].checked = false; $("input[name='businessUsage']")[x].checked = false;
}else { }else {
$("input[name='businessUsage']")[x].checked = true; $("input[name='businessUsage']")[x].checked = true;
...@@ -148,6 +152,15 @@ function initializate() { ...@@ -148,6 +152,15 @@ function initializate() {
coRowNum=MathUtil.add(coRowNum,1); coRowNum=MathUtil.add(coRowNum,1);
showBusiness($(this).val()); showBusiness($(this).val());
if ("S"== $(this).val() ){
$("#businessUsageS").prop("checked",false);
if ($("#werks").val() == "1010"){
Public.tip("广州市宝绅科技有限公司RFID工厂不维护仓库管理视图");
}
if ($("#mtart").val() == "ZGMB"){
Public.tip("刀工模板具不维护仓库管理视图");
}
}
if (coRowNum==dictUsage.length){ if (coRowNum==dictUsage.length){
$('input[name="isAll"]')[0].checked = true; $('input[name="isAll"]')[0].checked = true;
} }
...@@ -182,6 +195,10 @@ function initRaube(mtart) { ...@@ -182,6 +195,10 @@ function initRaube(mtart) {
$("#raube").val("S1"); $("#raube").val("S1");
$("#raube_text").val("S1-小塘工厂五金库拣配_3000"); $("#raube_text").val("S1-小塘工厂五金库拣配_3000");
} }
if (mtart == "ZGMB"){
UICtrl.setElRequiredFlag("#raube",false);
UICtrl.setElRequiredFlag("#lgtypName",false);
}
} }
function initSale(mtart){ function initSale(mtart){
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<x:radioC name="isOnsiteAudit" title="是否安排实地考察" dictionary="yesorno" required="false" label="是否安排实地考察" labelCol="2" fieldCol="2"/> <x:radioC name="isOnsiteAudit" title="是否安排实地考察" dictionary="yesorno" required="false" label="是否安排实地考察" labelCol="2" fieldCol="2"/>
<x:radioC name="isApprovedSupplier" title="是否录入合格供方" dictionary="yesorno" required="false" label="是否录入合格供方" labelCol="2" fieldCol="2"/> <x:radioC name="isApprovedSupplier" title="是否录入合格供方" dictionary="yesorno" required="false" label="是否录入合格供方" labelCol="2" fieldCol="2"/>
</div> </div>
<div style="padding-top: 15px;"> <div class="hg-form-row">
<x:fileList bizCode="produceSupplierInfo" bizId="attbizId" id="produceSupplierInfoList" title="相关资料" /> <x:fileList bizCode="produceSupplierInfo" bizId="attbizId" id="produceSupplierInfoList" title="相关资料" />
</div> </div>
</div> </div>
......
...@@ -199,7 +199,7 @@ public class DefaultHttpClient extends BaseApplication implements HttpClient { ...@@ -199,7 +199,7 @@ public class DefaultHttpClient extends BaseApplication implements HttpClient {
response = http.execute(get); response = http.execute(get);
StatusLine statusLine = response.getStatusLine(); StatusLine statusLine = response.getStatusLine();
int statusCode = statusLine.getStatusCode(); int statusCode = statusLine.getStatusCode();
if (statusLine.getStatusCode() < HttpStatus.SC_OK || statusLine.getStatusCode() >= HttpStatus.SC_MULTIPLE_CHOICES) { if (statusLine.getStatusCode() != HttpStatus.SC_OK) {
throw new IOException(String.format("调用系统出错,statusCode=%s, %s", statusCode, statusLine.getReasonPhrase())); throw new IOException(String.format("调用系统出错,statusCode=%s, %s", statusCode, statusLine.getReasonPhrase()));
} }
responseText = EntityUtils.toString(response.getEntity(), "UTF-8"); responseText = EntityUtils.toString(response.getEntity(), "UTF-8");
......
...@@ -369,7 +369,7 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA ...@@ -369,7 +369,7 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA
QueryModel model = this.sqlExecutorDao.getQueryModel(queryDescriptor, query); QueryModel model = this.sqlExecutorDao.getQueryModel(queryDescriptor, query);
model.putDictionary("maintenanceType", DictUtil.getDictionary("maintainType")); model.putDictionary("maintenanceType", DictUtil.getDictionary("maintainType"));
model.putDictionary("baseUnit", DictUtil.getDictionary("measuringUnit")); model.putDictionary("baseUnit", DictUtil.getDictionary("measuringUnit"));
model.putDictionary("itemAttributes", DictUtil.getDictionary("suppliesType")); model.putDictionary("mtart", DictUtil.getDictionary("suppliesType"));
model.putDictionary("businessUsage", DictUtil.getDictionary("serviceusage")); model.putDictionary("businessUsage", DictUtil.getDictionary("serviceusage"));
model.putDictionary("status", DictUtil.getDictionary("bizBillStatus")); model.putDictionary("status", DictUtil.getDictionary("bizBillStatus"));
model.setSortFieldName("billCode"); model.setSortFieldName("billCode");
......
...@@ -236,16 +236,16 @@ public class ProductScrapApplyApplicationImpl extends FlowBroker implements Prod ...@@ -236,16 +236,16 @@ public class ProductScrapApplyApplicationImpl extends FlowBroker implements Prod
public String saveProductScrapApplyVo(List<ProductScrapApplyVo> productScrapApplyVoListVo) { public String saveProductScrapApplyVo(List<ProductScrapApplyVo> productScrapApplyVoListVo) {
String productScrapApplyId = ""; String productScrapApplyId = "";
ProductScrapApply productScrapApply = new ProductScrapApply(); ProductScrapApply productScrapApply = new ProductScrapApply();
String zuser1 = productScrapApplyVoListVo.get(0).getZuser1();
//根据SAP传过来的创建人编码,映射流程发起人 //根据SAP传过来的创建人编码,映射流程发起人
Org org = orgApplication.loadMainOrgByLoginName(zuser1);
if (ObjectUtil.isNull(org)){
String acceptPersonCode = SystemCache.getParameter("acceptPersonCode", String.class); String acceptPersonCode = SystemCache.getParameter("acceptPersonCode", String.class);
Org org = orgApplication.loadMainOrgByLoginName(acceptPersonCode); org = orgApplication.loadMainOrgByLoginName(acceptPersonCode);
if (ObjectUtil.isNotNull(org)){ }
Operator operator = operatorApplication.createOperatorByPersonMemberId(org.getId()); Operator operator = operatorApplication.createOperatorByPersonMemberId(org.getId());
ThreadLocalUtil.putOperator(operator); ThreadLocalUtil.putOperator(operator);
}else { //发起流程
//throw new RuntimeException("未找到采购申请创建人:" + ernam);
}
//发起流程 05.11 lxh
List<ProductScrapApplyItem> productScrapApplyItems = new ArrayList<>(); List<ProductScrapApplyItem> productScrapApplyItems = new ArrayList<>();
for (ProductScrapApplyVo productScrapApplyVo : productScrapApplyVoListVo) { for (ProductScrapApplyVo productScrapApplyVo : productScrapApplyVoListVo) {
ProductScrapApplyItem productScrapApplyItem = new ProductScrapApplyItem(); ProductScrapApplyItem productScrapApplyItem = new ProductScrapApplyItem();
......
...@@ -61,16 +61,16 @@ public class ProductScrapApplyController extends CommonController { ...@@ -61,16 +61,16 @@ public class ProductScrapApplyController extends CommonController {
if (CollectionUtils.isEmpty(productScrapApplyVoListVo)){ if (CollectionUtils.isEmpty(productScrapApplyVoListVo)){
messageMap.put("CODE","E"); messageMap.put("CODE","E");
messageMap.put("MSG","未接收到数据,请检查"); messageMap.put("MSG","未接收到数据,请检查");
messageMap.put("DATA",billCode); messageMap.put("DATA","");
}else { }else {
billCode = this.productScrapApplyApplication.saveProductScrapApplyVo(productScrapApplyVoListVo); billCode = this.productScrapApplyApplication.saveProductScrapApplyVo(productScrapApplyVoListVo);
} }
messageMap.put("ZBPMID",billCode);
}catch (RuntimeException e){ }catch (RuntimeException e){
messageMap.put("CODE","E"); messageMap.put("CODE","E");
messageMap.put("MSG",e.getMessage()); messageMap.put("MSG",e.getMessage());
messageMap.put("DATA",billCode); messageMap.put("DATA","");
} }
messageMap.put("ZBPMID",billCode);
return messageMap; return messageMap;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<query-mappings> <query-mappings>
<query name="slicedNonProdApplyBaseInfoQuery" table="sap_non_prod_apply_base_info"> <query name="slicedNonProdApplyBaseInfoQuery" table="sap_non_prod_apply_base_info">
<sql-query> <sql-query>
select t.*,ad.matnr,ad.status as dept_status,ad.maktx,ad.werks,ad.werks_name from sap_non_prod_apply_base_info t left join sap_non_prod_apply_dept ad on t.id = ad.base_info_id where 1=1 select t.*,ad.matnr,ad.status as dept_status,ad.maktx,ad.werks,ad.werks_name,ad.mtart from sap_non_prod_apply_base_info t left join sap_non_prod_apply_dept ad on t.id = ad.base_info_id where 1=1
</sql-query> </sql-query>
<condition column="matnr" name="matnr" type="java.lang.String" symbol="like" alias="ad"/> <condition column="matnr" name="matnr" type="java.lang.String" symbol="like" alias="ad"/>
<condition column="status" name="status" type="java.lang.String" symbol="in" alias="t"/> <condition column="status" name="status" type="java.lang.String" symbol="in" alias="t"/>
......
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