Commit 0ea77373 authored by 1650842865's avatar 1650842865

针对Z打头的物料类型,全部隐藏掉,不再出现,传空。

parent 6b18e529
......@@ -908,11 +908,13 @@ function bindEvent_financial(mtart) {
$("#ekalr").val("X");//数量结构
}
//物料类型=ZSRV服务时。成本视图——不计算成本默认打勾选上
if (mtart == "ZSRV"){
$("#ncost").val("X");//不参与成本核算
}else {
$("#ncost").val("0");//不参与成本核算
}
// if (mtart == "ZSRV"){
// $("#ncost").val("X");//不参与成本核算
// }else {
// $("#ncost").val("0");//不参与成本核算
// }
//调整为全部传空
$("#ncost").val("0");//不参与成本核算
}
......
......@@ -530,7 +530,7 @@ function financialMustInput(flag) {
UICtrl.setElRequiredFlag("#vprsv",flag);
UICtrl.setElRequiredFlag("#mlast",flag);
UICtrl.setElRequiredFlag("#peinh",flag);
UICtrl.setElRequiredFlag("#ncost",flag);
//UICtrl.setElRequiredFlag("#ncost",flag);
UICtrl.setElRequiredFlag("#hkmat",flag);
UICtrl.setElRequiredFlag("#ekalr",flag);
var peinh = $("#peinh").val(); //定价基数
......@@ -544,18 +544,18 @@ function financialMustInput(flag) {
function financialDisplayNcost(vprsv) { // alert("-="+vprsv);
if (vprsv == 'S') { //标准价格
$('#ncost').val('0');
$('#ncost_text').val('0-空');
//$('#ncost_text').val('0-空');
$('#mlast').val('3');
$('#mlast_text').val('单/多级');
} else if (vprsv == 'V') { //移动平均价格
if ($('#beskz').val() == 'F' && ($('#sobsl').val() == '40' || $('#sobsl').val() == '70')) { //外部采购,库存转储,从1010工厂领料
$('#ncost').val('0');
$('#ncost_text').val('0-空');
//$('#ncost_text').val('0-空');
} else {
// $('#ncost').val('X');
// $('#ncost_text').val('X-是');
$('#ncost').val('0');
$('#ncost_text').val('0-空');
//$('#ncost_text').val('0-空');
}
$('#mlast').val('2');
$('#mlast_text').val('基于交易的');
......@@ -564,8 +564,9 @@ function financialDisplayNcost(vprsv) { // alert("-="+vprsv);
//物料类型=ZSRV服务时。成本视图——不计算成本默认打勾选上
var mtart = $("#mtart").val();
if (mtart == "ZSRV"){
$("#ncost").val("X");//不参与成本核算
$('#ncost_text').val('X-是');
$('#ncost').val('0');
//$("#ncost").val("X");//不参与成本核算
//$('#ncost_text').val('X-是');
}
}
......
......@@ -372,7 +372,8 @@
<x:selectC name="mlast" label="价格确定" labelCol="1" fieldCol="2" dictionary="mlast"/>
<x:inputC name="peinh" label="定价基数" labelCol="1" fieldCol="2" required="false"/>
<x:selectC name="ncost" label="不参与成本核算" labelCol="2" fieldCol="1" dictionary="ncost" />
<x:hidden name="ncost"/>
<%--<x:selectC name="ncost" label="不参与成本核算" labelCol="2" fieldCol="1" dictionary="ncost" />--%>
<x:selectC name="hkmat" label="物料来源" labelCol="1" fieldCol="2" dictionary="xchpf"/>
<x:inputC name="verpr" label="移动平均价" labelCol="1" fieldCol="2"/>
<x:inputC name="stprs" label="标准价" labelCol="1" fieldCol="2"/>
......
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