Commit 686ae70d authored by 1650842865's avatar 1650842865

物料主数据控制1010工厂下,不维护仓库视图;放行条增加选择采购订单;

外发单打印图片显示物料号;采购信息记录增加附件上传功能
parent 8a306b82
...@@ -145,7 +145,11 @@ function initializate() { ...@@ -145,7 +145,11 @@ 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++) {
$("input[name='businessUsage']")[x].checked = true; if ("1010" == $("#werks").val() && x == 5){
$("input[name='businessUsage']")[x].checked = false;
}else {
$("input[name='businessUsage']")[x].checked = true;
}
} }
showAllBusiness(); showAllBusiness();
} else { } else {
...@@ -392,6 +396,14 @@ function bindEvent() { ...@@ -392,6 +396,14 @@ function bindEvent() {
$("#lgnum").val("W00"); $("#lgnum").val("W00");
$("#lgnumName").val("广州宝绅印刷工厂仓库"); $("#lgnumName").val("广州宝绅印刷工厂仓库");
} }
if (data.WERKS == "1010" && $("input[name='businessUsage']")[5].checked){
Public.tip("广州市宝绅科技有限公司RFID工厂不维护仓库管理视图");
$("#businessUsageS").prop("checked",false);
//return false;
}else {
$("#businessUsageS").prop("checked",true);
}
//选择了工厂和库存地点后,带出存储条件 //选择了工厂和库存地点后,带出存储条件
bindEvent_raube(data.WERKS,$('#lgort').val()); bindEvent_raube(data.WERKS,$('#lgort').val());
......
...@@ -124,7 +124,11 @@ function initializate() { ...@@ -124,7 +124,11 @@ 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++) {
$("input[name='businessUsage']")[x].checked = true; if ("1010" == $("#werks").val() && x == 5){
$("input[name='businessUsage']")[x].checked = false;
}else {
$("input[name='businessUsage']")[x].checked = true;
}
} }
showAllBusiness(); showAllBusiness();
} else { } else {
......
...@@ -78,7 +78,7 @@ function loadGrid() { ...@@ -78,7 +78,7 @@ function loadGrid() {
TXZ01: "belongings", TXZ01: "belongings",
ZNAME: "lifnrName", ZNAME: "lifnrName",
MEINS: "unit", MEINS: "unit",
MEINS: "unitName" MSEHL: "unitName"
} }
} }
} }
......
...@@ -6,6 +6,7 @@ $(document).ready(function () { ...@@ -6,6 +6,7 @@ $(document).ready(function () {
}); });
function initialize() { function initialize() {
UICtrl.layout("#layout", {leftWidth: 3}); UICtrl.layout("#layout", {leftWidth: 3});
$('#fileList').fileList({bizId:$("#id").val()});
} }
function bindEvent() { function bindEvent() {
...@@ -529,6 +530,7 @@ function setId(value) { ...@@ -529,6 +530,7 @@ function setId(value) {
$("#id").val(value); $("#id").val(value);
var _grid=UICtrl.getGridManager('#maingrid'); var _grid=UICtrl.getGridManager('#maingrid');
_grid.options.parms.sapPurchaseInfoRecordId = value; _grid.options.parms.sapPurchaseInfoRecordId = value;
$('#fileList').fileList({bizId : value});
} }
function reloadGrid() { function reloadGrid() {
......
...@@ -32,6 +32,9 @@ ...@@ -32,6 +32,9 @@
</div> </div>
</div> </div>
<div id="maingrid"></div> <div id="maingrid"></div>
<div style="padding-top: 15px;">
<x:fileList bizCode="purchaseInfoRecord" bizId="id" id="fileList" title="相关资料" />
</div>
</form> </form>
</div> </div>
</body> </body>
\ No newline at end of file
...@@ -178,16 +178,19 @@ ...@@ -178,16 +178,19 @@
<#if productInfoVoList?? && productInfoVoList?size gt 0> <#if productInfoVoList?? && productInfoVoList?size gt 0>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table cellspacing="0px" cellpadding="0px" class="tableBorder">
<colgroup> <colgroup>
<col width='50%' /> <col width='8%' />
<col width='50%' /> <col width='46%' />
<col width='46%' />
</colgroup> </colgroup>
<tr> <tr>
<td class="left">产品编码</td>
<td class="left">产品正面图片:</td> <td class="left">产品正面图片:</td>
<td class="left">产品背面图片:</td> <td class="left">产品背面图片:</td>
</tr> </tr>
<#list productInfoVoList as detail> <#list productInfoVoList as detail>
<tr> <tr>
<td class="center">${detail.matnr?default("")?html}</td>
<td class="center"> <td class="center">
<img src='${detail.frontImg?default("")?html}' width="230px"/> <img src='${detail.frontImg?default("")?html}' width="230px"/>
</td> </td>
......
...@@ -175,16 +175,19 @@ ...@@ -175,16 +175,19 @@
<#if productInfoVoList?? && productInfoVoList?size gt 0> <#if productInfoVoList?? && productInfoVoList?size gt 0>
<table cellspacing="0px" cellpadding="0px" class="tableBorder"> <table cellspacing="0px" cellpadding="0px" class="tableBorder">
<colgroup> <colgroup>
<col width='50%' /> <col width='8%' />
<col width='50%' /> <col width='46%' />
<col width='46%' />
</colgroup> </colgroup>
<tr> <tr>
<td class="left">产品编码</td>
<td class="left">产品正面图片:</td> <td class="left">产品正面图片:</td>
<td class="left">产品背面图片:</td> <td class="left">产品背面图片:</td>
</tr> </tr>
<#list productInfoVoList as detail> <#list productInfoVoList as detail>
<tr> <tr>
<td class="center">${detail.matnr?default("")?html}</td>
<td class="center"> <td class="center">
<img src='${detail.frontImg?default("")?html}' width="230px"/> <img src='${detail.frontImg?default("")?html}' width="230px"/>
</td> </td>
......
...@@ -12,6 +12,10 @@ import java.math.BigDecimal; ...@@ -12,6 +12,10 @@ import java.math.BigDecimal;
*/ */
@Data @Data
public class EpProductInfoVo implements Serializable { public class EpProductInfoVo implements Serializable {
/**
* 产品编号
*/
private String matnr;
/** /**
* 印张规格 * 印张规格
*/ */
......
...@@ -109,6 +109,7 @@ public class EpApplicationImpl implements EpApplication { ...@@ -109,6 +109,7 @@ public class EpApplicationImpl implements EpApplication {
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException("查询生产版本正反面图片出错:" + message); throw new RuntimeException("查询生产版本正反面图片出错:" + message);
} }
epProductInfoVo.setMatnr(matnr2.replaceFirst("^0*", ""));
return epProductInfoVo; return epProductInfoVo;
} }
......
...@@ -127,12 +127,18 @@ public class SapDictionaryApplicationImpl implements SapDictionaryApplication { ...@@ -127,12 +127,18 @@ public class SapDictionaryApplicationImpl implements SapDictionaryApplication {
if (length >= 1){ if (length >= 1){
widths[u]="100"; widths[u]="100";
} }
if (length >= 20 ) { if (length >= 10){
widths[u]="200"; widths[u]=String.valueOf(length*10);
}
if (length >= 30 ) {
widths[u]="250";
} }
// if (length >= 15){
// widths[u]="150";
// }
// if (length >= 20 ) {
// widths[u]="200";
// }
// if (length >= 30 ) {
// widths[u]="250";
// }
u++; u++;
} }
return widths; return widths;
......
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