From d6a5691b9aacbae7d09a4ea5a7b4fbc1474f376a Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期二, 11 六月 2024 08:34:20 +0800
Subject: [PATCH] 采购订单超链接格式修改,工作联系单bug修复
---
WebTM/views/质量管理/工作联系单/OA_Add_Edit_WorkLinkBill.html | 76 +++++++------------------------------
1 files changed, 15 insertions(+), 61 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..6038b77 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,16 @@
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;
+ var str = window.location.search; //鑾峰彇閾炬帴涓紶閫掔殑鍙傛暟
+ var arr = str.substring(str.lastIndexOf("=") + 1);
+ datajson = $.parseJSON(decodeURI(arr));
+ $("#HRelationInterID").val(datajson.HRelationInterID);
+ $("#HRelationEntryID").val(datajson.HRelationEntryID);
+ $("#HRelationBillNo").val(datajson.HRelationBillNo);
+ $("#HRelationBillType").val(datajson.HRelationBillType);
+
set_AddFNew();
}
else if (OperationType == 3) {//缂栬緫
@@ -437,54 +439,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()
{
--
Gitblit v1.9.1