Commit aae685e8 by wancheng

其他入库单,其他出库单

parent 00c255cb
...@@ -20,7 +20,7 @@ $(function () { ...@@ -20,7 +20,7 @@ $(function () {
// 详情 // 详情
if (item.id) { if (item.id) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" ' template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="jump(' + item.id + ')" >详情</a>'; + 'onclick="jump(' + item.id + ',\''+item.submitStatus+'\')" >详情</a>';
} }
return template; return template;
} }
...@@ -136,8 +136,8 @@ function check(id, auditStatus) { ...@@ -136,8 +136,8 @@ function check(id, auditStatus) {
); );
} }
//详情 //详情
function jump(id) { function jump(id,submitStatus) {
var herf = ctx + "\\web\\" + "HGKC006A?inqu_status-0-primaryId=" + id + "&efParentFormEname=HGKC006"; var herf = ctx + "\\web\\" + "HGKC006A?inqu_status-0-primaryId=" + id + "&inqu_status-0-submitStatus="+ submitStatus +"&efParentFormEname=HGKC006";
window.open(herf); window.open(herf);
} }
/** /**
......
...@@ -61,7 +61,6 @@ $(function () { ...@@ -61,7 +61,6 @@ $(function () {
field: "invQty", field: "invQty",
template: function (item) { template: function (item) {
if(item.invQty && item.invUnitWeight){ if(item.invQty && item.invUnitWeight){
debugger;
let invWeight = item.invQty * item.invUnitWeight; let invWeight = item.invQty * item.invUnitWeight;
//item['invWeight'] = invWeight.toString(); //item['invWeight'] = invWeight.toString();
resultGrid.setCellValue(item, 'invWeight', invWeight); resultGrid.setCellValue(item, 'invWeight', invWeight);
...@@ -76,7 +75,6 @@ $(function () { ...@@ -76,7 +75,6 @@ $(function () {
}, { }, {
field: "invUnitWeight", field: "invUnitWeight",
template: function (item) { template: function (item) {
debugger;
if(item.invQty && item.invUnitWeight){ if(item.invQty && item.invUnitWeight){
let invWeight = item.invQty * item.invUnitWeight; let invWeight = item.invQty * item.invUnitWeight;
//item['invWeight'] = invWeight.toString(); //item['invWeight'] = invWeight.toString();
...@@ -155,6 +153,13 @@ $(function () { ...@@ -155,6 +153,13 @@ $(function () {
*/ */
$(window).load(function () { $(window).load(function () {
query(); query();
let submitStatus = $("#inqu_status-0-submitStatus").val();
if(submitStatus==1){
$(".k-grid-add").hide();
$(".k-grid-save-changes").hide();
$(".k-grid-cancel-changes").hide();
$(".k-grid-delete").hide();
}
}); });
/** /**
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
</EF:EFSelect>--%> </EF:EFSelect>--%>
<EF:EFInput cname="存货名称" ename="inventName" blockId="inqu_status" row="0" colWidth="3"/> <EF:EFInput cname="存货名称" ename="inventName" blockId="inqu_status" row="0" colWidth="3"/>
<EF:EFInput cname="主表id" ename="primaryId" blockId="inqu_status" row="0" colWidth="3" type="hidden"/> <EF:EFInput cname="主表id" ename="primaryId" blockId="inqu_status" row="0" colWidth="3" type="hidden"/>
<EF:EFInput cname="主表状态" ename="submitStatus" blockId="inqu_status" row="0" colWidth="3" type="hidden"/>
</div> </div>
<%-- <div class="row"> <%-- <div class="row">
<EF:EFInput cname="部件名称" ename="prdtName" blockId="inqu_status" row="0" colWidth="3"/> <EF:EFInput cname="部件名称" ename="prdtName" blockId="inqu_status" row="0" colWidth="3"/>
......
...@@ -20,7 +20,7 @@ $(function () { ...@@ -20,7 +20,7 @@ $(function () {
// 详情 // 详情
if (item.id) { if (item.id) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" ' template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="jump(' + item.id + ')" >详情</a>'; + 'onclick="jump(' + item.id + ',\''+item.submitStatus+'\')" >详情</a>';
} }
return template; return template;
} }
...@@ -137,8 +137,8 @@ function check(id, auditStatus) { ...@@ -137,8 +137,8 @@ function check(id, auditStatus) {
} }
//详情 //详情
function jump(id) { function jump(id,submitStatus) {
var herf = ctx + "\\web\\" + "HGKC007A?inqu_status-0-primaryId=" + id + "&efParentFormEname=HGKC007"; var herf = ctx + "\\web\\" + "HGKC007A?inqu_status-0-primaryId=" + id + "&inqu_status-0-submitStatus="+ submitStatus +"&efParentFormEname=HGKC007";
window.open(herf); window.open(herf);
} }
......
...@@ -61,7 +61,6 @@ $(function () { ...@@ -61,7 +61,6 @@ $(function () {
field: "invQty", field: "invQty",
template: function (item) { template: function (item) {
if(item.invQty && item.invUnitWeight){ if(item.invQty && item.invUnitWeight){
debugger;
let invWeight = item.invQty * item.invUnitWeight; let invWeight = item.invQty * item.invUnitWeight;
//item['invWeight'] = invWeight.toString(); //item['invWeight'] = invWeight.toString();
resultGrid.setCellValue(item, 'invWeight', invWeight); resultGrid.setCellValue(item, 'invWeight', invWeight);
...@@ -76,7 +75,6 @@ $(function () { ...@@ -76,7 +75,6 @@ $(function () {
}, { }, {
field: "invUnitWeight", field: "invUnitWeight",
template: function (item) { template: function (item) {
debugger;
if(item.invQty && item.invUnitWeight){ if(item.invQty && item.invUnitWeight){
let invWeight = item.invQty * item.invUnitWeight; let invWeight = item.invQty * item.invUnitWeight;
//item['invWeight'] = invWeight.toString(); //item['invWeight'] = invWeight.toString();
...@@ -155,6 +153,13 @@ $(function () { ...@@ -155,6 +153,13 @@ $(function () {
*/ */
$(window).load(function () { $(window).load(function () {
query(); query();
let submitStatus = $("#inqu_status_0_submitStatus").val();
if(submitStatus==1){
$(".k-grid-add").hide();
$(".k-grid-save-changes").hide();
$(".k-grid-cancel-changes").hide();
$(".k-grid-delete").hide();
}
}); });
/** /**
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
</EF:EFSelect>--%> </EF:EFSelect>--%>
<EF:EFInput cname="存货名称" ename="inventName" blockId="inqu_status" row="0" colWidth="3"/> <EF:EFInput cname="存货名称" ename="inventName" blockId="inqu_status" row="0" colWidth="3"/>
<EF:EFInput cname="主表id" ename="primaryId" blockId="inqu_status" row="0" colWidth="3" type="hidden"/> <EF:EFInput cname="主表id" ename="primaryId" blockId="inqu_status" row="0" colWidth="3" type="hidden"/>
<EF:EFInput cname="主表状态" ename="submitStatus" blockId="inqu_status" row="0" colWidth="3" type="hidden"/>
</div> </div>
</EF:EFRegion> </EF:EFRegion>
......
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