From df3e719955cc93b4e762ac75fbb61737fbf3b7a8 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 16 六月 2025 08:38:12 +0800
Subject: [PATCH] 1
---
WebTM/views/质量管理/工作联系单/OA_Add_Edit_WorkLinkBill.html | 79 ++++++++-------------------------------
1 files changed, 17 insertions(+), 62 deletions(-)
diff --git "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\245\344\275\234\350\201\224\347\263\273\345\215\225/OA_Add_Edit_WorkLinkBill.html" "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\245\344\275\234\350\201\224\347\263\273\345\215\225/OA_Add_Edit_WorkLinkBill.html"
index d6c29ce..c5e98fe 100644
--- "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\245\344\275\234\350\201\224\347\263\273\345\215\225/OA_Add_Edit_WorkLinkBill.html"
+++ "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\245\344\275\234\350\201\224\347\263\273\345\215\225/OA_Add_Edit_WorkLinkBill.html"
@@ -16,6 +16,7 @@
<script src="../../../layuiadmin/Scripts/webConfig.js"></script>
<script src="../../../layuiadmin/PubCustom.js"></script>
<script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
+ <script src="../../../layuiadmin/PageTitle.js"></script>
<style type="text/css">
.layui-form-label {
width: 85px;
@@ -233,15 +234,15 @@
<div class="layui-inline">
<label class="layui-form-label">鍏宠仈鍗曞彿:</label>
<div class="layui-input-inline">
- <input class="layui-input" name="HRelationBillNo" lay-verify="HMainSourceBillNo" id="HMainSourceBillNo" disabled autocomplete="off">
- <input id="HMainSourceInterID" name="HRelationInterID" value="0" type="hidden" />
- <input id="HMainSourceEntryID" name="HRelationEntryID" value="0" type="hidden" />
+ <input class="layui-input" name="HRelationBillNo" lay-verify="HRelationBillNo" id="HRelationBillNo" disabled autocomplete="off">
+ <input id="HRelationInterID" name="HRelationInterID" value="0" type="hidden" />
+ <input id="HRelationEntryID" name="HRelationEntryID" value="0" type="hidden" />
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">鍏宠仈绫诲瀷:</label>
<div class="layui-input-inline">
- <input class="layui-input" name="HRelationBillType" lay-verify="HMainSourceBillType" id="HMainSourceBillType" disabled autocomplete="off">
+ <input class="layui-input" name="HRelationBillType" lay-verify="HMainSourceBillType" id="HRelationBillType" disabled autocomplete="off">
</div>
</div>
<div class="layui-inline">
@@ -378,15 +379,18 @@
set_AddFNew();
}
else if (OperationType == 2) {
- //鑱斿崟鍒濆鍖�
- var HRelationInterID = params[params[1]];
- var HRelationEntryID = params[params[2]];
- var HRelationBillNo = params[params[3]];
- var HRelationBillType = params[params[4]];
- $("#HRelationInterID").val(HRelationInterID); //鑱旂郴鍗曞崟鍙凤紙鏆傛椂鍙栧�艰鍗曠紪鍙凤級
- $("#HRelationEntryID").val(HRelationEntryID); //鑱旂郴鍗曚富鍐呯爜(鍙栧�糎InterID)
- $("#HRelationBillNo").val(HRelationBillNo); //鑱旂郴鍗曞瓙鍐呯爜(婧愬崟琛屽彿)
- $("#HRelationBillType").val(HRelationBillType); //鑱旂郴鍗曠被鍨�
+ //婧愬崟鏂板
+ var datajson;
+ //鑾峰彇url鍙傛暟
+ var params = new URLSearchParams(location.search);;
+ console.log(params.get('dataJson'));
+ datajson = params.get('dataJson');
+ datajson = JSON.parse(decodeURIComponent(datajson));
+
+ $("#HRelationInterID").val(datajson.HRelationInterID);
+ $("#HRelationEntryID").val(datajson.HRelationEntryID);
+ $("#HRelationBillNo").val(datajson.HRelationBillNo);
+ $("#HRelationBillType").val(datajson.HRelationBillType);
set_AddFNew();
}
else if (OperationType == 3) {//缂栬緫
@@ -437,54 +441,6 @@
$("#HDeptName").val(sessionStorage["HDept"]); //閮ㄩ棬
}
- //#region 鏈夋簮鍗曟柊澧炴棤鐢�
-
- //function set_AddNew() {
- // refSav = "Add";
- // //鍒濆鍩烘湰淇℃伅璧嬪��
- // $("#HDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //鍗曟嵁鏃ユ湡
- // $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //鍒跺崟鏃ユ湡
- // $("#HMaker").val(sessionStorage["HUserName"]); //鍒跺崟浜�
- // $("#HSendMan").val(sessionStorage["HUserName"]); //鍙戦�佷汉
- // $("#HDeptID").val(sessionStorage["HDeptID"]); //閮ㄩ棬ID
- // $("#HDeptName").val(sessionStorage["HDept"]); //閮ㄩ棬
-
- // $.ajax(
- // {
- // type: "GET",
- // url: GetWEBURL() + "/Sc_MESBeginWorkBill/GetMESBeginWorkFrom", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
- // async: true,
- // data: {
- // "HRelationInterID": HRelationInterID,
- // "HSourceEntryID": HMainSourceEntryID,
- // "HSourceBillNo": HMainSourceBillNo,
- // "HSourceBillType": HBillType
- // },
- // dataType: "json",
- // success: function (data) {
- // if (data.count == 1)// 璇存槑楠岃瘉鎴愬姛浜嗭紝
- // {
- // var LoadData = data.data.h_p_JIT_GetInfoByICMOStatusInterID;
- // $("#HMaterName").val(LoadData[0].HMaterName); //浜у搧鍚嶇О
- // $("#HMaterModel").val(LoadData[0].HModel); //浜у搧瑙勬牸
- // $("#HMainSourceBillNo").val(LoadData[0].HICMOBillNo); //婧愬崟鍗曞彿锛堟殏鏃跺彇鍊艰鍗曠紪鍙凤級
- // $("#HMainSourceInterID").val(LoadData[0].HSourceInterID); //婧愬崟涓诲唴鐮�(鍙栧�糎InterID)
- // $("#HMainSourceEntryID").val(LoadData[0].HSourceEntryID); //婧愬崟瀛愬唴鐮�(婧愬崟琛屽彿)
- // $("#HMainSourceBillType").val(LoadData[0].HSourceBillType); //婧愬崟绫诲瀷
- // $("#HQty").val(LoadData[0].HDatePlanQty); //璁″垝鏁伴噺
- // Qty = LoadData[0].HDatePlanQty;
- // }
- // else {
- // layer.alert(data.Message, { icon: 5 });
-
- // }
- // },
- // error: function (err) {
- // layer.alert(err, { icon: 5 });
- // }
- // });
- //}
- //#endregion
//缂栬緫
function set_EditFromGrid()
{
@@ -751,7 +707,6 @@
end: function () {
},
success: function (layero, index) {
-
}
});
});
--
Gitblit v1.9.1