From 165a0f6c6276fc7bdf46233fcc4beaa2f09508b9 Mon Sep 17 00:00:00 2001 From: duhe <226547893@qq.com> Date: 星期四, 28 九月 2023 15:03:27 +0800 Subject: [PATCH] 生产领料单:打浆人、车间根据上次保存时的数据进行初始化 --- WebTM/views/领料发货/领料出库/Kf_MateOutBillLEdit.html | 42 ++++++++++++++++++++++++++++++++++++++++++ WebTM/Properties/PublishProfiles/JFTM.pubxml.user | 2 +- 2 files changed, 43 insertions(+), 1 deletions(-) diff --git a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user index c9d9c12..79b3362 100644 --- a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user +++ b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user @@ -4737,7 +4737,7 @@ <publishTime>08/16/2021 17:24:30</publishTime> </File> <File Include="views/棰嗘枡鍙戣揣/棰嗘枡鍑哄簱/Kf_MateOutBillLEdit.html"> - <publishTime>09/28/2023 14:41:44</publishTime> + <publishTime>09/28/2023 14:56:23</publishTime> </File> <File Include="views/棰嗘枡鍙戣揣/棰嗘枡鍑哄簱/Kf_MateOutBillList.html"> <publishTime>09/28/2023 10:17:34</publishTime> diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillLEdit.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillLEdit.html" index 55aa947..59937a4 100644 --- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillLEdit.html" +++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillLEdit.html" @@ -356,6 +356,10 @@ //#region 鍒ゆ柇鎿嶄綔绫诲瀷骞跺垵濮嬪寲鐣岄潰 if (OperationType == 1) {//鏃犳簮鏂板 set_AddFNew(); + + //璇诲彇鏈湴瀛樺偍鏁版嵁锛屾牴鎹笂娆¤缃垵濮嬪寲鏁版嵁 + get_ReadConfigFile(); + //$('#print-btn').addClass("layui-btn-disabled").attr("disabled", true); } else if (OperationType == 2) {//澶嶅埗 @@ -761,6 +765,10 @@ clear(); OperationType = 1; set_AddFNew(); + + //璇诲彇鏈湴瀛樺偍鏁版嵁锛屾牴鎹笂娆¤缃垵濮嬪寲鏁版嵁 + get_ReadConfigFile(); + $("#HProcExchBillNo").prop("disabled", false); //$('#print-btn').addClass("layui-btn-disabled").attr("disabled", true); }); @@ -796,6 +804,10 @@ if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); + + //璁板綍鏈淇濆瓨鐨勬暟鎹紝鐢ㄤ簬涓嬩竴娆℃搷浣滄椂鍒濆鍖栫殑鏁版嵁 + get_WriteConfigFile(); + /*$('#print-btn').addClass("layui-btn-disabled").attr("disabled", false);*/ //var index = parent.layer.getFrameIndex(window.name); //鍏堝緱鍒板綋鍓峣frame灞傜殑绱㈠紩 //parent.layer.close(index); //鍐嶆墽琛屽叧闂� @@ -1031,6 +1043,36 @@ } //#endregion + //#region 璇诲彇閰嶇疆鏂囦欢 + function get_ReadConfigFile() { + //鑾峰彇鏈湴瀛樺偍鐨勬暟鎹� + var data = localStorage.getItem("Kf_MateOutBillLEdit"); + if (data != null) { + var data2 = JSON.parse(data); + $("#HDeptID").val(data2["HDeptID"]); + $("#HDeptName").val(data2["HDeptName"]); + $("#HMaterEmpID").val(data2["HMaterEmpID"]); + $("#HMaterEmpName").val(data2["HMaterEmpName"]); + form.render('select'); + } + } + //#endregion + + //#region 瀛樺偍閰嶇疆鏂囦欢 + function get_WriteConfigFile() { + //娓呯┖鏈湴瀛樺偍鐨勬暟鎹� + localStorage.removeItem("Kf_MateOutBillLEdit"); + var data = { + HDeptID: $("#HDeptID").val() + , HDeptName: $("#HDeptName").val() + , HMaterEmpID: $("#HMaterEmpID").val() + , HMaterEmpName: $("#HMaterEmpName").val() + } + //鏈湴瀛樺偍 + localStorage.setItem("Kf_MateOutBillLEdit", JSON.stringify(data)); + } + //#endregion + //#region 鍒濆鍖栬〃鍗曟彃浠� function set_InitFrom() { laydate.render({ -- Gitblit v1.9.1