From 4b82ad7f29e795226bafea86953979dba00be2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Mon, 9 Sep 2019 22:24:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=A2=E5=8D=95=E8=BD=AC?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=88=96=E9=94=80=E5=94=AE=E5=8D=95=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/js/pages/materials/in_out.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/erp_web/js/pages/materials/in_out.js b/erp_web/js/pages/materials/in_out.js index bad9b7c2..c1ccc4c6 100644 --- a/erp_web/js/pages/materials/in_out.js +++ b/erp_web/js/pages/materials/in_out.js @@ -1107,13 +1107,14 @@ //如果是订单跳转到采购或销售 if(pageType === "skip") { var skipList = $("#depotHeadFM .datagrid-body tr"); + var input = ".datagrid-editable-input"; //逐条自动点击每行数据 skipList.each(function (i) { setTimeout(function () { - skipList.eq(i).find("[field='Stock']").click(); - },(i+1)*1000); + skipList.eq(i).find("[field='Remark']").click().find(input).val("来自订单"); //此处为确保订单转销售成功,勿删 + },(i+1)*200); }); - } + } } }, error:function() {