Commit 8f90f367 authored by 1650842865's avatar 1650842865

外协单打印优化;客供料维护仓库视图,取消存储条件必填;采购订单累计订单数量;工序外协选了报价后,不能编辑币别和税码

parent aa6ee641
...@@ -58,8 +58,8 @@ function initializate() { ...@@ -58,8 +58,8 @@ function initializate() {
$("#xchpf").val("X"); $("#xchpf").val("X");
$("#lgort").val("1099"); $("#lgort").val("1099");
$("#lgortName").val("客供料专用库"); $("#lgortName").val("客供料专用库");
Public.tip("客供料不维护仓库管理视图和财务核算视图"); Public.tip("客供料不维护财务核算视图");
$("#businessUsageS").prop("checked",false); //$("#businessUsageS").prop("checked",false);
$("#businessUsageB").prop("checked",false); $("#businessUsageB").prop("checked",false);
//分类类型、分类名称 //分类类型、分类名称
...@@ -171,7 +171,7 @@ function initializate() { ...@@ -171,7 +171,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() || "ZGMB" == $("#mtart").val() || "ZKGL" == $("#mtart").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 if ("ZKGL" == $("#mtart").val() && x == 6){ }else if ("ZKGL" == $("#mtart").val() && x == 6){
$("input[name='businessUsage']")[x].checked = false; $("input[name='businessUsage']")[x].checked = false;
...@@ -205,9 +205,9 @@ function initializate() { ...@@ -205,9 +205,9 @@ function initializate() {
if ($("#mtart").val() == "ZGMB"){ if ($("#mtart").val() == "ZGMB"){
Public.tip("刀工模板具不维护仓库管理视图"); Public.tip("刀工模板具不维护仓库管理视图");
} }
if ($("#mtart").val() == "ZKGL"){ // if ($("#mtart").val() == "ZKGL"){
Public.tip("客供料不维护仓库管理视图"); // Public.tip("客供料不维护仓库管理视图");
} // }
} }
if ("B"== $(this).val() ){ if ("B"== $(this).val() ){
$("#businessUsageB").prop("checked",false); $("#businessUsageB").prop("checked",false);
...@@ -471,8 +471,8 @@ function bindEvent() { ...@@ -471,8 +471,8 @@ function bindEvent() {
Public.tip("刀工模板具不维护仓库管理视图"); Public.tip("刀工模板具不维护仓库管理视图");
$("#businessUsageS").prop("checked",false); $("#businessUsageS").prop("checked",false);
}else if (mtart == "ZKGL"){ }else if (mtart == "ZKGL"){
Public.tip("客供料不维护仓库管理视图和财务核算视图"); Public.tip("客供料不维护财务核算视图");
$("#businessUsageS").prop("checked",false); //$("#businessUsageS").prop("checked",false);
$("#businessUsageB").prop("checked",false); $("#businessUsageB").prop("checked",false);
} else { } else {
//选择了工厂和库存地点后,带出存储条件 //选择了工厂和库存地点后,带出存储条件
......
...@@ -199,6 +199,10 @@ function initRaube(mtart) { ...@@ -199,6 +199,10 @@ function initRaube(mtart) {
UICtrl.setElRequiredFlag("#raube",false); UICtrl.setElRequiredFlag("#raube",false);
UICtrl.setElRequiredFlag("#lgtypName",false); UICtrl.setElRequiredFlag("#lgtypName",false);
} }
if (mtart == "ZKGL"){
UICtrl.setElRequiredFlag("#raube",false);
}
} }
function initSale(mtart){ function initSale(mtart){
......
...@@ -380,29 +380,29 @@ function getOrderColumns(){ ...@@ -380,29 +380,29 @@ function getOrderColumns(){
},); },);
columns.push({ columns.push({
display: "币别", name: "waersTextView", width: 140, minWidth: 60, type: "string", align: "left", display: "币别", name: "waersTextView", width: 140, minWidth: 60, type: "string", align: "left",
editor: { // editor: {
type: 'dictionary', // type: 'dictionary',
data: {name: 'waers'}, // data: {name: 'waers'},
textField: 'waersTextView', // textField: 'waersTextView',
valueField: 'waers', // valueField: 'waers',
required: true, // required: true,
render: function (item) { // render: function (item) {
return item.waersTextView; // return item.waersTextView;
} // }
}, // },
},); },);
columns.push({ columns.push({
display: "税码", name: "purchaseMwskzTextView", width: 140, minWidth: 60, type: "string", align: "left", display: "税码", name: "purchaseMwskzTextView", width: 140, minWidth: 60, type: "string", align: "left",
editor: { // editor: {
type: 'dictionary', // type: 'dictionary',
data: {name: 'purchaseMwskz'}, // data: {name: 'purchaseMwskz'},
textField: 'purchaseMwskzTextView', // textField: 'purchaseMwskzTextView',
valueField: 'purchaseMwskz', // valueField: 'purchaseMwskz',
required: true, // required: true,
render: function (item) { // render: function (item) {
return item.purchaseMwskzTextView; // return item.purchaseMwskzTextView;
} // }
}, // },
}); });
}else { }else {
columns.push({ columns.push({
...@@ -451,7 +451,7 @@ function loadMaterialGrid() { ...@@ -451,7 +451,7 @@ function loadMaterialGrid() {
materialGridManager = UICtrl.grid("#materialGrid", { materialGridManager = UICtrl.grid("#materialGrid", {
columns: [ columns: [
{ {
display: "供给物品名称", name: "materialName", width: 300, minWidth: 60, type: "String", align: "left", display: "供给物品名称", name: "materialName", width: 500, minWidth: 60, type: "String", align: "left",
editor: {type: 'text', required: true} editor: {type: 'text', required: true}
}, },
{ {
......
...@@ -47,6 +47,7 @@ function initItemGrid() { ...@@ -47,6 +47,7 @@ function initItemGrid() {
// fixedCellHeight: true, // fixedCellHeight: true,
onAfterShowData: function (){ onAfterShowData: function (){
initTotalMoney(); initTotalMoney();
initTotalNum();
} }
} }
); );
...@@ -103,6 +104,19 @@ function initTotalMoney(){ ...@@ -103,6 +104,19 @@ function initTotalMoney(){
} }
} }
function initTotalNum(){
var _grid = UICtrl.getGridManager('#maingrid');
if (_grid != null){
var data = _grid.currentData.Rows;
var totalNum = 0;
$.each(data, function (i, o) {
var _menge = o['menge'] + '';
totalNum = MathUtil.add(totalNum, _menge);
$('#totalNum').val(totalNum);
});
}
}
function getId() { function getId() {
return $('#id').val(); return $('#id').val();
......
...@@ -38,10 +38,10 @@ ...@@ -38,10 +38,10 @@
<x:inputC name="waers" label="币种" readonly="true" labelCol="1" fieldCol="2" required="false"/> <x:inputC name="waers" label="币种" readonly="true" labelCol="1" fieldCol="2" required="false"/>
<x:inputC name="fillinDate" label="创建日期" readonly="true" wrapper="date" labelCol="1" fieldCol="2" <x:inputC name="fillinDate" label="创建日期" readonly="true" wrapper="date" labelCol="1" fieldCol="2"
required="false"/> required="false"/>
<x:inputC name="totalMoney" label="订单总金额" readonly="true" labelCol="1" fieldCol="2"
required="false"/>
<x:inputC name="namel" label="供应商" readonly="true" labelCol="1" fieldCol="2" required="false"/> <x:inputC name="namel" label="供应商" readonly="true" labelCol="1" fieldCol="2" required="false"/>
<x:inputC name="headText" label="备注" readonly="true" labelCol="1" fieldCol="8" required="false"/> <x:inputC name="totalMoney" label="订单总金额" readonly="true" labelCol="1" fieldCol="2" required="false"/>
<x:inputC name="totalNum" label="订单总数量" readonly="true" labelCol="1" fieldCol="2" required="false"/>
<x:inputC name="headText" label="备注" readonly="true" labelCol="1" fieldCol="5" required="false"/>
</div> </div>
</div> </div>
<div id="normal"> <div id="normal">
......
...@@ -679,10 +679,10 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu ...@@ -679,10 +679,10 @@ public class SapPurchaseOrderApplicationImpl extends FlowBroker implements SapPu
loss = loss.add(outsourceOrderItem.getPrintLoss() != null ? outsourceOrderItem.getPrintLoss() : BigDecimal.ZERO);//印张LOSS数改为LOSS数 loss = loss.add(outsourceOrderItem.getPrintLoss() != null ? outsourceOrderItem.getPrintLoss() : BigDecimal.ZERO);//印张LOSS数改为LOSS数
//查询工序报价 //查询工序报价
ProcessQuotedPriceItemNumber quotedPriceItemNumber = processQuotedPriceItemApplication.findQuotedPriceByProductAndProcess(outsourceOrderItem.getProductCode(), outsourceOrderItem.getWempf(), outsourceOrderItem.getMenge(), outsourceOrderItem.getLifnr()); ProcessQuotedPriceItemNumber quotedPriceItemNumber = processQuotedPriceItemApplication.findQuotedPriceByProductAndProcess(outsourceOrderItem.getProductCode(), outsourceOrderItem.getWempf(), outsourceOrderItem.getMenge(), outsourceOrderItem.getLifnr());
detailMap.put("netpr",quotedPriceItemNumber.getUnitPrice());//含税单价 detailMap.put("netpr",productKey.getKbetr());//含税单价
detailMap.put("kbetr2",quotedPriceItemNumber.getFreight());//运输费 detailMap.put("kbetr2",quotedPriceItemNumber.getFreight());//运输费
detailMap.put("kbetr3",quotedPriceItemNumber.getPackMoney());//包装费 detailMap.put("kbetr3",quotedPriceItemNumber.getPackMoney());//包装费
BigDecimal priceAmount = quotedPriceItemNumber.getUnitPrice(); BigDecimal priceAmount = productKey.getKbetr();
if (quotedPriceItemNumber.getFreight() != null){ if (quotedPriceItemNumber.getFreight() != null){
priceAmount = priceAmount.add(quotedPriceItemNumber.getFreight()); priceAmount = priceAmount.add(quotedPriceItemNumber.getFreight());
} }
......
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