Commit 0bd62fdd authored by 刘学辉's avatar 刘学辉

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

parents 38f5ed4f 8b93f7db
...@@ -1214,6 +1214,19 @@ function bindEvent_mrp(){ ...@@ -1214,6 +1214,19 @@ function bindEvent_mrp(){
$('#dispoName').val(data.NAME); $('#dispoName').val(data.NAME);
} }
}); });
$("#sbdkz").combox({onChange:function(data){
var mtart = $("#mtart").val();
//物料类型只有选了这两种类型后,可以不填,其他值只能选2
if (mtart != "ZZCP" && mtart != "ZSHB") {
if (data.value != "2"){
$("#sbdkz").val("")
$("#sbdkz_text").val("")
Public.tip("物料类型不是产成品和自制机械设备时,只能选”只汇总请求“")
}
}
}
});
} }
function bindEvent_warehouse(){ function bindEvent_warehouse(){
......
...@@ -9,9 +9,12 @@ ...@@ -9,9 +9,12 @@
td { td {
font-size: 13px; font-size: 13px;
} }
@page :first{
margin-top: 1.8cm;
}
@page { @page {
size: A4; size: A4;
margin: 1.2cm 1cm 0cm; margin-top: 1.9cm;
@top-center { @top-center {
content: element(header); content: element(header);
} }
...@@ -22,13 +25,15 @@ ...@@ -22,13 +25,15 @@
<!-- 页眉部分 --> <!-- 页眉部分 -->
<div style="position: running(header);" id="header"> <div style="position: running(header);" id="header">
<div class="billTitle" style="font-size: 25px"> <div class="billTitle" style="font-size: 25px">
<span style="position: absolute;margin-left: 70px">
<img src='data:image/jpg;base64,${bsnPng}' width="100px"/>
</span>
宝绅内部变更申请/通知单</div> 宝绅内部变更申请/通知单</div>
<table cellspacing="0px" cellpadding="0px" class="tablePrint"> <table cellspacing="0px" cellpadding="0px" class="tablePrint">
<colgroup> <colgroup>
<col width="20%"/> <col width="20%"/>
<col width="52%"/> <col width="52%"/>
<col width="28%"/> <col width="28%"/>
<col width="28%"/>
</colgroup> </colgroup>
<tr> <tr>
<td class="left">${changeNo?default("")?html}</td> <td class="left">${changeNo?default("")?html}</td>
...@@ -39,8 +44,8 @@ ...@@ -39,8 +44,8 @@
</tr> </tr>
</table> </table>
</div> </div>
<div class="title" style="background: #CC8F81;text-align: center;margin-top: 100px">General Information 基本信息</div> <div style="background: #CC8F81;text-align: center;">General Information 基本信息</div>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table class="tableBorder">
<colgroup> <colgroup>
<col width='14%' /> <col width='14%' />
<col width='33%' /> <col width='33%' />
...@@ -52,7 +57,7 @@ ...@@ -52,7 +57,7 @@
<td class="left">CHANGE REQUESTED BY (DEPT/NAME)变更申请部门/姓名:<br/>${deptName?default("")?html}</td> <td class="left">CHANGE REQUESTED BY (DEPT/NAME)变更申请部门/姓名:<br/>${deptName?default("")?html}</td>
</tr> </tr>
</table> </table>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table class="tableBorder">
<colgroup> <colgroup>
<col width='100%' /> <col width='100%' />
</colgroup> </colgroup>
...@@ -66,7 +71,7 @@ ...@@ -66,7 +71,7 @@
</td> </td>
</tr> </tr>
</table> </table>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table class="tableBorder">
<colgroup> <colgroup>
<col width='100%' /> <col width='100%' />
</colgroup> </colgroup>
...@@ -77,9 +82,9 @@ ...@@ -77,9 +82,9 @@
</td> </td>
</tr> </tr>
</table> </table>
<div class="title" style="background: #CC8F81;text-align: center">Change Details 变更内容</div> <div style="background: #CC8F81;text-align: center">Change Details 变更内容</div>
<div class="title" style="background: yellow;text-align: left">CURRENT SPEC 目前产品信息</div> <div style="background: yellow;text-align: left">CURRENT SPEC 目前产品信息</div>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table class="tableBorder">
<colgroup> <colgroup>
<col width='14%' /> <col width='14%' />
<col width='84%' /> <col width='84%' />
...@@ -108,8 +113,8 @@ ...@@ -108,8 +113,8 @@
<td class="left">${others?default("")?html}</td> <td class="left">${others?default("")?html}</td>
</tr> </tr>
</table> </table>
<div class="title" style="background: yellow;text-align: left">REVISED SPEC 变更后产品信息</div> <div style="background: yellow;text-align: left">REVISED SPEC 变更后产品信息</div>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table class="tableBorder">
<colgroup> <colgroup>
<col width='14%' /> <col width='14%' />
<col width='84%' /> <col width='84%' />
...@@ -138,10 +143,8 @@ ...@@ -138,10 +143,8 @@
<td class="left">${changedOthers?default("")?html}</td> <td class="left">${changedOthers?default("")?html}</td>
</tr> </tr>
</table> </table>
<div style="background: #CC8F81;text-align: center">Approvals / Checks 确认</div>
<div class="blank_div"></div> <table class="tableBorder">
<div class="title" style="background: #CC8F81;text-align: center">Approvals / Checks 确认</div>
<table cellspacing="0px" cellpadding="0px" class="tableBorder">
<colgroup> <colgroup>
<col width='22%' /> <col width='22%' />
<col width='25%' /> <col width='25%' />
...@@ -168,8 +171,8 @@ ...@@ -168,8 +171,8 @@
</tr> </tr>
</#if> </#if>
</table> </table>
<div class="title" style="background: #CC8F81;text-align: center">Implementation 执行人(版具/模具等)</div> <div style="background: #CC8F81;text-align: center">Implementation 执行人(版具/模具等)</div>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table class="tableBorder">
<colgroup> <colgroup>
<col width='14%' /> <col width='14%' />
<col width='25%' /> <col width='25%' />
...@@ -205,8 +208,8 @@ ...@@ -205,8 +208,8 @@
</tr> </tr>
</#if> </#if>
</table> </table>
<div class="title" style="background: #CC8F81;text-align: center">Stock / Inventory 库存</div> <div style="background: #CC8F81;text-align: center">Stock / Inventory 库存</div>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table class="tableBorder">
<colgroup> <colgroup>
<col width='14%' /> <col width='14%' />
<col width='25%' /> <col width='25%' />
......
...@@ -67,7 +67,7 @@ public class EpChangeFormController extends CommonController { ...@@ -67,7 +67,7 @@ public class EpChangeFormController extends CommonController {
String type = this.getSDO().getString("type"); String type = this.getSDO().getString("type");
if ("product".equals(type)){ if ("product".equals(type)){
reasonForChange = DictUtil.getDictionary("reasonForChange"); reasonForChange = DictUtil.getDictionary("reasonForChange");
reasonForChange.remove("MATERIAL CHANGE"); //reasonForChange.remove("MATERIAL CHANGE");
this.putAttribute("reasonForChangeList",reasonForChange); this.putAttribute("reasonForChangeList",reasonForChange);
return forward("epChangeFormDetail",epChangeForm); return forward("epChangeFormDetail",epChangeForm);
}else { }else {
......
...@@ -46,7 +46,7 @@ public class EpSaleOrderCancelVo implements Serializable { ...@@ -46,7 +46,7 @@ public class EpSaleOrderCancelVo implements Serializable {
/** /**
* 产品类型 * 产品类型
*/ */
@JsonProperty("productType") @JsonProperty("productTypeName")
private String productType; private String productType;
/** /**
......
...@@ -305,14 +305,6 @@ public class SapPermitApplicationImpl extends FlowBroker implements SapPermitApp ...@@ -305,14 +305,6 @@ public class SapPermitApplicationImpl extends FlowBroker implements SapPermitApp
//Document document = null; //Document document = null;
ByteArrayOutputStream byteArrayOutputStream = null; ByteArrayOutputStream byteArrayOutputStream = null;
try { try {
response.reset();
response.setHeader("Content-Type", "application/pdf-stream");
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode("放行条.pdf", "UTF-8"));
String randoms=CommonUtil.createGUID().substring(0,10);
/*File fileDir=new File("bar");
if(!fileDir.exists()) {
fileDir.mkdirs();
}*/
File file = new File("bar-"+permit.getBillCode()+".png"); File file = new File("bar-"+permit.getBillCode()+".png");
if(!file.exists()) { if(!file.exists()) {
String IMG_TYPE_PNG = "image/png"; String IMG_TYPE_PNG = "image/png";
...@@ -328,8 +320,6 @@ public class SapPermitApplicationImpl extends FlowBroker implements SapPermitApp ...@@ -328,8 +320,6 @@ public class SapPermitApplicationImpl extends FlowBroker implements SapPermitApp
}catch (Exception e) { }catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
throw new RuntimeException("PDF生成失败!"); throw new RuntimeException("PDF生成失败!");
} finally {
} }
return byteArrayOutputStream; return byteArrayOutputStream;
} }
......
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