From 7ae052d141e69fe9e19392172fc2960134a03232 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 01 十二月 2025 15:54:52 +0800
Subject: [PATCH] 1.采购入库单列表、直接调拨单列表、其他出库单列表、生产入库列表、销售出库单列表:layui中开发 查看包装明细
---
WebTM/views/质量管理/质量报表/SB_TechnologyParameterList.html | 509 ++++++++++++++++++++++++++++++++------------------------
1 files changed, 289 insertions(+), 220 deletions(-)
diff --git "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\350\264\250\351\207\217\346\212\245\350\241\250/SB_TechnologyParameterList.html" "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\350\264\250\351\207\217\346\212\245\350\241\250/SB_TechnologyParameterList.html"
index 2df83ed..7966d64 100644
--- "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\350\264\250\351\207\217\346\212\245\350\241\250/SB_TechnologyParameterList.html"
+++ "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\350\264\250\351\207\217\346\212\245\350\241\250/SB_TechnologyParameterList.html"
@@ -44,6 +44,7 @@
<label class="layui-form-label" style="width: 85px;padding: 9px 18px;">宸ュ簭</label>
<div class="layui-input-block">
<input type="text" class="layui-input" lay-verify="HProcName" name="HProcName" id="HProcName" value="" style="background-color: #efefef4d; width: 75%; display: inline-block;" readonly>
+ <input type="hidden" class="layui-input" name="HProcID" id="HProcID" value="" readonly>
<button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHProc" id="btnHProc" style="padding: 0 10px;float: right;margin-right: 3px;">
<i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
</button>
@@ -62,103 +63,57 @@
<i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
</button>
<button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>
- <div class="layui-colla-content" style="padding: 0px; margin-left: 6%;">
+ <button type="button" class="layui-btn layuiadmin-btn-order" lay-submit="" lay-filter="Exit" id="Exit" style="padding:0 5px">閫�鍑�</button>
+ <div class="layui-row" style="margin-top:5px;margin-left:82px;margin-bottom:5px;">
<div class="layui-row" style="margin-top:5px">
<div class="layui-inline">
<label class="layui-form-label" style="width: 85px;">鐗╂枡鍚嶇О</label>
<div class="layui-input-block" style="margin-left: 120px;">
<input type="text" class="layui-input" name="HMaterName" id="HMaterName" readonly>
+ <input type="hidden" class="layui-input" name="HMaterID" id="HMaterID" value="" readonly>
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 85px;">璁惧</label>
<div class="layui-input-block" style="margin-left: 120px;">
- <input type="text" class="layui-input" name="HEquipName" id="HEquipName" value="" readonly>
+ <input type="text" class="layui-input" name="HEquipName" id="HEquipName" value="" readonly>
+ <input type="hidden" class="layui-input" name="HEquipNumber" id="HEquipNumber" value="" readonly>
+ <input type="hidden" class="layui-input" name="HEquipID" id="HEquipID" value="" readonly>
</div>
</div>
- </div>
-
- <div class="layui-row" style="margin-top:5px">
<div class="layui-inline">
- <label class="layui-form-label">杩囨护</label>
- <div class="layui-input-block">
- <select name="ColName" id="ColName" class="ForFilteringSchemes" lay-filter="ColName" style="width:190px;">
+ <label class="layui-form-label" style="width: 85px;">閲囬泦鏉ユ簮</label>
+ <div class="layui-input-block" style="margin-left: 120px; width: 185px;">
+ <select name="HEquipType" id="HEquipType" class=" ForFilteringSchemes" lay-verify="HEquipType">
+ <option value="鎵嬪姩杈撳叆">鎵嬪姩杈撳叆</option>
+ <option value="璁惧閲囬泦">璁惧閲囬泦</option>
</select>
</div>
</div>
- <div class="layui-inline">
- <select name="Comparator" id="Comparator" class="ForFilteringSchemes" lay-filter="Comparator" style="width:190px;">
- <option value="0" selected="selected"></option>
- <option value="=">=</option>
- <option value=">=">>=</option>
- <option value=">">></option>
- <option value="<="><=</option>
- <option value="<"><</option>
- <option value="<>"><></option>
- <option value="7">鍖呭惈</option>
- <option value="8">宸﹀寘鍚�</option>
- <option value="9">鍙冲寘鍚�</option>
- <option value="10">涓嶅寘鍚�</option>
- </select>
- </div>
- <div class="layui-inline">
- <input type="text" class="layui-input ForFilteringSchemes" value="" name="ColContent" id="ColContent">
- </div>
</div>
<div class="layui-row" style="margin-top:5px">
- <div class="layui-inline">
- <label class="layui-form-label">杩囨护</label>
+ <div class="layui-inline " style="display:none">
+ <label class="layui-form-label">寮�濮嬫棩鏈�</label>
<div class="layui-input-block">
- <select name="ColName1" id="ColName1" lay-filter="ColName1" style="width:190px;">
- </select>
+ <input type="datetime" class="layui-input ForFilteringSchemes" id="HBeginDate" style="width:190px;" readonly>
</div>
</div>
- <div class="layui-inline">
- <select name="Comparator1" id="Comparator1" lay-filter="Comparator1" style="width:190px;">
- <option value="0" selected="selected"></option>
- <option value="=">=</option>
- <option value=">=">>=</option>
- <option value=">">></option>
- <option value="<="><=</option>
- <option value="<"><</option>
- <option value="<>"><></option>
- <option value="7">鍖呭惈</option>
- <option value="8">宸﹀寘鍚�</option>
- <option value="9">鍙冲寘鍚�</option>
- <option value="10">涓嶅寘鍚�</option>
- </select>
- </div>
- <div class="layui-inline">
- <input type="text" class="layui-input" value="" name="ColContent1" id="ColContent1">
- </div>
- </div>
- <div class="layui-row" style="margin-top:5px">
- <div class="layui-inline">
- <label class="layui-form-label">杩囨护</label>
+ <div class="layui-inline" style="display:none">
+ <label class="layui-form-label">缁撴潫鏃ユ湡</label>
<div class="layui-input-block">
- <select name="ColName2" id="ColName2" lay-filter="ColName2" style="width:190px;">
- </select>
+ <input type="datetime" class="layui-input ForFilteringSchemes" id="HEndDate" style="width:190px;" readonly>
</div>
</div>
- <div class="layui-inline">
- <select name="Comparator2" id="Comparator2" lay-filter="Comparator2" style="width:190px;">
- <option value="0" selected="selected"></option>
- <option value="=">=</option>
- <option value=">=">>=</option>
- <option value=">">></option>
- <option value="<="><=</option>
- <option value="<"><</option>
- <option value="<>"><></option>
- <option value="7">鍖呭惈</option>
- <option value="8">宸﹀寘鍚�</option>
- <option value="9">鍙冲寘鍚�</option>
- <option value="10">涓嶅寘鍚�</option>
- </select>
- </div>
- <div class="layui-inline">
- <input type="text" class="layui-input" value="" name="ColContent2" id="ColContent2">
- </div>
</div>
+ </div>
+ </div>
+ </div>
+ <div class="layui-row" >
+ <div class="layui-col-xs3 layui-inline" style="margin-top:20px;">
+ <table class="layui-hide" id="mainTable_HTeach" lay-filter="mainTable_HTeach"></table>
+ </div>
+ <div class="layui-col-xs9 layui-inline" style="margin-top:20px;">
+ <div id="histogram" style="width:99.5%;height:calc(90vh);margin-top:10px;">
</div>
</div>
</div>
@@ -166,18 +121,18 @@
<div style="width:99%;height:calc(100vh);">
<table class="" id="mainTable" lay-filter="mainTable"></table>
</div>
- <div id="histogram" style="width:99.5%;height:calc(68vh);margin-top:10px;">
- </div>
</div>
<script type="text/html" id="toolbarDemo">
<div class="layui-btn-container">
<button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh" id="RefreshButton"><i class="layui-icon layui-icon-refresh-3"></i>鍒锋柊</button>
<button type="button" class="layui-btn layui-btn-sm" lay-event="get_export" id="get_export"><i class="layui-icon layui-icon-export"></i>瀵煎嚭</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn" id="HideButton"><i class="layui-icon layui-icon-form"></i>鍒楄缃�</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit" id="ExitButton"><i class="layui-icon layui-icon-logout"></i>閫�鍑�</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn" id="HideButton"><i class="layui-icon layui-icon-form"></i>鍒楄缃�</button>
+ <button type="button" class="layui-btn layui-btn-sm" style="display :none" lay-event="get_Exit" id="ExitButton"><i class="layui-icon layui-icon-logout"></i>閫�鍑�</button>
</div>
</script>
-
+ <script type="text/html" id="toolbarDemo1">
+
+ </script>
</form>
</div>
</div>
@@ -202,12 +157,22 @@
//鏌ヨ鏉′欢
var sWhere = "";
var option = [];
+ var HMater; //鐗╂枡
+ var HProc; //宸ュ簭
+ var HEquId; //璁惧
+ var HTeachName; //宸ヨ壓鍙傛暟
+ var HType;//绫诲瀷
var HModName = "SB_TechnologyParameterList";
//涓嶉渶瑕佹樉绀虹殑瀛楁 鍙墿灞�
var titleData = ["骞�", "鏈�", "宸ュ簭"];
-
-
+ var params = getUrlVars();
+ var OperationType = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鏁版嵁绫诲瀷 1娣诲姞 淇濆瓨 2澶嶅埗 3 缂栬緫
+ var linterid = params[params[1]]; //浠庡弬鏁颁腑鑾峰彇 鍗曟嵁鍐呯爜
+ var HProcID = params[params[2]]; //浠庡弬鏁颁腑鑾峰彇 宸ュ簭
+ HTeachName = decodeURI(params[params[3]]); //浠庡弬鏁颁腑鑾峰彇 宸ヨ壓鍙傛暟
+ HType = decodeURI(params[params[4]]); //浠庡弬鏁颁腑鑾峰彇 宸ヨ壓鍙傛暟
var ins; //鐢ㄤ簬瀵煎嚭excel
+
//#endregion
//#region 杩涘叆椤甸潰鏃㈠姞杞�
@@ -235,10 +200,21 @@
break;
};
});
+
+ table.on('tool(mainTable_HTeach)', function (obj) {
+ var data = obj.data;
+ //鍗曟嵁鍙疯秴閾炬帴
+ if (obj.event == '宸ヨ壓鍙傛暟') { //妫�鏌� obj.event 鏄惁绛変簬瀛楃涓� '鍗曟嵁鍙�'銆傚鏋滅瓑浜庯紝鍒欐墽琛宨f寰幆
+ $("#HTechParamName").val(data.宸ヨ壓鍙傛暟);
+ get_FastQuery( );
+ }
+ });
+
//鏌ヨ鎸夐挳
form.on('submit(btnSearch)', function (data) {
get_FastQuery();
});
+
// 閲嶇疆鎸夐挳
form.on('submit(btnReSearch)', function (data) {
set_ClearQuery();
@@ -269,12 +245,26 @@
//#region 姝ら〉闈㈡墍鏈夋柟娉�
// 鍒濆鍖栫晫闈�
function set_ClearBill() {
- set_InitGrid(); //鍒濆鍖栬〃鏍�
- get_FastQuery();
- ////鍔犺浇鎶樼嚎鍥�
- set_Graphics();
+ set_InitGrid(); //鍒濆鍖栬〃鏍�
+ set_InitGrid1(); //鍒濆鍖栬〃鏍�
+ if (OperationType == 3) {
+ Get_SB_EquipICMOTechParamBill(linterid, HProcID);//鑾峰彇娴佽浆鍗�,宸ュ簭,璁惧,鐗╂枡,寮�濮嬬粨鏉熸椂闂�
+ $("#HTechParamName").val(HTeachName);
+ $("#HEquipType").val(HType);
+ $('#HEquipType').parents('.layui-inline').hide();
+ form.render('select');
+ Get_TechParam();//鑾峰彇褰撳墠娴佽浆鍗�,鐗╂枡,宸ュ簭,璁惧 瀵瑰簲鐨勪骇鍝佸伐鑹哄弬鏁版竻鍗�
+ get_FastQuery();
+ //鍔犺浇鎶樼嚎鍥�
+ set_Graphics();
+ } else {
+ get_FastQuery();
+ //鍔犺浇鎶樼嚎鍥�
+ set_Graphics();
+ }
}
+
//鍒濆鍖栬〃鏍�
function set_InitGrid() {
option = {
@@ -303,16 +293,85 @@
table.render(option)
}
+ //鍒濆鍖栬〃鏍�
+ function set_InitGrid1() {
+ option_HTeach = {
+ elem: '#mainTable_HTeach'
+ , toolbar: '#toolbarDemo1'
+ , totalRow: true
+ , height: 'full-50'
+ , page: false
+ , cellMinWidth: 90
+ , limit: 50
+ , data: []
+ , limits: [50, 500, 5000, 20000]
+ , cols: [[
+ { type: 'checkbox', totalRowText: '鍚堣琛�' }
+ , { field: '宸ヨ壓鍙傛暟', title: '宸ヨ壓鍙傛暟', sort: true }
+ , { field: '閲囬泦鏉ユ簮', title: '閲囬泦鏉ユ簮', sort: true }
+ ]]
+ };
+ table.render(option_HTeach)
+ }
+
+ //蹇�熸煡璇�
+ function get_FastQuery() {
+ var HProcExchBillNo = $("#HProcExchBillNo").val();//娴佽浆鍗″彿
+ var HProcID = $("#HProcID").val(); //宸ュ簭鍚嶇О
+ var HTechParamName = $("#HTechParamName").val(); //宸ヨ壓鍙傛暟
+ var HEquipID = $("#HEquipID").val(); //璁惧鍚嶇О
+ var HBeginDate = $("#HBeginDate").val(); //寮�濮嬫椂闂�
+ var HEndDate = $("#HEndDate").val(); //缁撴潫鏃堕棿
+ if (HProcExchBillNo != "" && HProcID != "" && HTechParamName != "") {
+ sWhere = {
+ HProcExchBillNo: HProcExchBillNo
+ , HProcID: HProcID
+ , HTechParamName: HTechParamName
+ , HEquipID: HEquipID
+ , HBeginDate: HBeginDate
+ , HEndDate: HEndDate
+ }
+ get_Display(JSON.stringify(sWhere));
+ sWhere = "";//璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
+ }
+ }
+
+ //閲嶇疆蹇�熸煡璇�
+ function set_ClearQuery() {
+ $("#HProcExchBillNo").val("");
+ $("#HProcID").val("");
+ $("#HProcName").val("");
+ $("#HTechParamName").val("");
+ $("#HMaterID").val("");
+ $("#HMaterName").val("");
+ $("#HEquipID").val("");
+ $("#HEquipNumber").val("");
+ $("#HEquipName").val("");
+ $("#HBeginDate").val("");
+ $("#HEndDate").val("");
+
+ $("#btnSearch").click();
+ form.render('select');
+
+ sWhere = "";
+ }
+
//鏌ヨ
function get_Display(sWhere) {
var index = layer.load(0, { shade: false });
var ajaxLoad = layer.load();
+ var Type = "";
+ if ($("#HEquipType").val() == "鎵嬪姩杈撳叆") {
+ Type = 1;
+ } else {
+ Type = 2;
+ }
//杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
$.ajax({
url: GetWEBURL() + '/QC_CustomerAppealReport/SB_EquipICMOTechParamList',
type: "GET",
- async:false,
- data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
+ async: false,
+ data: { "sWhere": sWhere, "user": sessionStorage["HUserName"], "Type": Type },
success: function (data1) {
if (data1.count == 1) {
var data = [];
@@ -352,16 +411,13 @@
, cellMinWidth: 90
}
ins = table.render(option);
-
+
//鍒锋柊琛ㄦ牸鏁版嵁
DisPlay_HideColumn();
//鍔犺浇鎶樼嚎鍥�
set_Graphics();
- layer.close(ajaxLoad);
- if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") {
- ColFilter();
- }
+ layer.close(ajaxLoad);
} else {
layer.close(ajaxLoad);
@@ -374,121 +430,7 @@
});
layer.close(index);
}
- //蹇�熸煡璇�
- function get_FastQuery() {
- var HProcExchBillNo = $("#HProcExchBillNo").val();
- var HProcName = $("#HProcName").val();
- var HTechParamName = $("#HTechParamName").val();
- var HEquipName = $("#HEquipName").val();
- var ColName = $("#ColName").val();//澶嶉�夋
- var Comparator = $("#Comparator").val()
- var ColContent = $("#ColContent").val();
-
- var ColName1 = $("#ColName1").val();//澶嶉�夋
- var Comparator1 = $("#Comparator1").val()
- var ColContent1 = $("#ColContent1").val();
- var ColName2 = $("#ColName2").val();//澶嶉�夋
- var Comparator2 = $("#Comparator2").val()
- var ColContent2 = $("#ColContent2").val();
-
- if (ColName != 0 && Comparator != 0) {
- var com = "";
- switch (Comparator) {
- case "7":
- com = "like'%" + ColContent + "%'";
- break;
- case "8":
- com = "like'%" + ColContent + "'";
- break;
- case "9":
- com = "like'" + ColContent + "%'";
- break;
- case "10":
- com = "not like'%" + ColContent + "%'";
- break;
- default:
- com = "" + Comparator + "'" + ColContent + "'";
- break;
- }
- sWhere += " and " + ColName + " " + com;
- }
- if (ColName1 != 0 && Comparator1 != 0) {
- var com1 = "";
- switch (Comparator1) {
- case "7":
- com1 = "like'%" + ColContent1 + "%'";
- break;
- case "8":
- com1 = "like'%" + ColContent1 + "'";
- break;
- case "9":
- com1 = "like'" + ColContent1 + "%'";
- break;
- case "10":
- com1 = "not like'%" + ColContent1 + "%'";
- break;
- default:
- com1 = "" + Comparator1 + "'" + ColContent1 + "'";
- break;
- }
- sWhere += " and " + ColName1 + " " + com1;
- }
- if (ColName2 != 0 && Comparator2 != 0) {
- var com2 = "";
- switch (Comparator2) {
- case "7":
- com2 = "like'%" + ColContent2 + "%'";
- break;
- case "8":
- com2 = "like'%" + ColContent2 + "'";
- break;
- case "9":
- com2 = "like'" + ColContent2 + "%'";
- break;
- case "10":
- com2 = "not like'%" + ColContent2 + "%'";
- break;
- default:
- com2 = "" + Comparator + "'" + ColContent + "'";
- break;
- }
- sWhere += " and " + ColName2 + " " + com2;
- }
-
- if (HProcExchBillNo != "" && HProcName != "" && HTechParamName != "") {
- sWhere = {
- HProcExchBillNo: HProcExchBillNo
- , HProcName: HProcName
- , HTechParamName: HTechParamName
- , HEquipName: HEquipName
- }
- get_Display(JSON.stringify(sWhere));
- sWhere = "";//璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
- }
- }
- //閲嶇疆蹇�熸煡璇�
- function set_ClearQuery() {
- $("#HProcExchBillNo").val();
- $("#HProcName").val();
- $("#HTechParamName").val();
- $("#HMaterName").val();
- $("#HEquipName").val();
-
- $("#btnSearch").click();
- $("#ColContent").val("");
- $("#ColName").val("0");
- $("#Comparator").val("0");
- $("#ColContent2").val("");
- $("#ColName2").val("0");
- $("#Comparator2").val("0");
- $("#ColContent1").val("");
- $("#ColName1").val("0");
- $("#Comparator1").val("0");
- form.render('select');
-
- sWhere = "";
- }
//鍒锋柊
function get_Refresh() {
$("#btnSearch").trigger('click');
@@ -564,7 +506,7 @@
type: 'line',
label: {
show: true,
- formatter: '{c}%'
+ formatter: '{c}'
},
tooltip: {
valueFormatter: function (value) {
@@ -578,7 +520,7 @@
type: 'line',
label: {
show: true,
- formatter: '{c}%'
+ formatter: '{c}'
},
tooltip: {
valueFormatter: function (value) {
@@ -600,7 +542,7 @@
type: 'line',
label: {
show: true,
- formatter: '{c}%'
+ formatter: '{c}'
},
tooltip: {
valueFormatter: function (value) {
@@ -622,7 +564,7 @@
type: 'line',
label: {
show: true,
- formatter: '{c}%'
+ formatter: '{c}'
},
tooltip: {
valueFormatter: function (value) {
@@ -691,10 +633,10 @@
return layer.msg('璇烽�夋嫨鏁版嵁');
}
$("#HProcExchBillNo").val(checkStatus.data[0].鍗曟嵁鍙�);
+ $("#HMaterID").val(checkStatus.data[0].HMaterID);
$("#HMaterName").val(checkStatus.data[0].浜у搧鍚嶇О);
- $("#HProcName").val(checkStatus.data[0].褰撳墠宸ュ簭);
- layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
- get_EquipList();
+ //$("#HProcName").val(checkStatus.data[0].褰撳墠宸ュ簭);
+ layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
, btn2: function (index, layero) {
//鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
@@ -721,8 +663,8 @@
area: ['90%', '90%'],
maxmin: true,
content: ['../../鍩虹璧勬枡/鐢熶骇鍩虹璧勬枡/Gy_Process.html', 'yes'],
- btn: ['纭畾', '鍙栨秷']
- , btn1: function (index, layero) {
+ btn: ['纭畾', '鍙栨秷'],
+ btn1: function (index, layero) {
//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
@@ -730,8 +672,11 @@
if (checkStatus.data.length === 0) {
return layer.msg('璇烽�夋嫨鏁版嵁');
}
+ $("#HProcID").val(checkStatus.data[0].HItemID);
$("#HProcName").val(checkStatus.data[0].宸ュ簭鍚嶇О);
layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+ get_EquipList();//鏌ユ壘璁惧 鍜� 娴佽浆鍗$殑 寮�瀹屽伐鏃堕棿
+ Get_TechParam();//鏌ユ壘杩欎釜娴佽浆鍗� 宸ュ簭鐨勪骇鍝佸伐鑹哄弬鏁版竻鍗�
}
, btn2: function (index, layero) {
//鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
@@ -748,16 +693,19 @@
//宸ヨ壓鍙傛暟
form.on('submit(btnHTechParam)', function () {
+ var HMaterName = $("#HMaterName").val();
+ var HProcName = $("#HProcName").val();
+ var HEquipNumber = $("#HEquipNumber").val();
//椤甸潰灞�-鑷畾涔�
layer.open({
type: 2,
skin: 'layui-layer-rim', //鍔犱笂杈规
- title: '宸ュ簭鍒楄〃',
+ title: '宸ヨ壓鍙傛暟鍒楄〃',
closeBtn: 1,
shift: 2,
area: ['90%', '90%'],
maxmin: true,
- content: ['../../../views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_TechnologyParameterList.html', 'yes'],
+ content: ['../../../views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_TechnologyParameterList.html?type=HTechParam&OperationType=2&HEquipNumber=' + HEquipNumber + '&HProcName=' + HProcName + '&HMaterName=' + HMaterName + '', 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -783,20 +731,32 @@
});
});
- //鏍规嵁娴佽浆鍗¤幏鍙栬澶囩偣妫�琛ㄧ殑 璁惧
- function get_EquipList() {
+ //閫�鍑�
+ form.on('submit(Exit)', function (data) {
+ if (OperationType == 3) {
+ Pub_Close(1);
+ } else {
+ Pub_Close(2);
+ }
+ });
+ //鏍规嵁娴佽浆鍗�+宸ュ簭 鑾峰彇 璁惧
+ function get_EquipList() {
var HProcExchBillNo = $("#HProcExchBillNo").val();
+ var HProcID = $("#HProcID").val();
$.ajax({
url: GetWEBURL() + "/QC_CustomerAppealReport/Get_EquipList",
type: "GET",
async: false,
- data: { "HProcExchBillNo": HProcExchBillNo, "user": sessionStorage["HUserName"] },
+ data: { "HProcExchBillNo": HProcExchBillNo, "HProcID": HProcID, "user": sessionStorage["HUserName"] },
success: function (result) {
if (result.count == 1) {
var data = result.data;
- $("#HEquipName").val(data[0]["HName"]);
-
+ $("#HEquipID").val(data[0]["璁惧id"]);
+ $("#HEquipName").val(data[0]["璁惧鍚嶇О"]);
+ $("#HEquipNumber").val(data[0]["璁惧浠g爜"]);
+ $("#HBeginDate").val(Pub_Format(data[0]["寮�濮嬫椂闂�"],"yyyy-MM-dd hh:mm:ss"));
+ $("#HEndDate").val(Pub_Format(data[0]["缁撴潫鏃堕棿"], "yyyy-MM-dd hh:mm:ss"));
} else {
layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
}
@@ -807,6 +767,115 @@
})
}
+ //鏍规嵁鍏ㄧ▼杩芥函鎶ヨ〃鑾峰彇娴佽浆鍗�,宸ュ簭,璁惧,鐗╂枡
+ function Get_SB_EquipICMOTechParamBill(linterid, HProcID) {
+ $.ajax({
+ url: GetWEBURL() + "/QC_CustomerAppealReport/Get_EquipICMOTechParamList",
+ type: "GET",
+ async: false,
+ data: { "linterid": linterid, "HProcID": HProcID, "user": sessionStorage["HUserName"] },
+ success: function (result) {
+ if (result.count == 1) {
+ var data = result.data;
+ $("#HProcExchBillNo").val(data[0]["宸ュ簭娴佽浆鍗″彿"]);
+ $("#HProcID").val(data[0]["宸ュ簭id"]);
+ $("#HProcName").val(data[0]["宸ュ簭鍚嶇О"]);
+ $("#HMaterID").val(data[0]["鐗╂枡id"]);
+ $("#HMaterName").val(data[0]["鐗╂枡鍚嶇О"]);
+ $("#HEquipID").val(data[0]["璁惧id"]);
+ $("#HEquipNumber").val(data[0]["璁惧浠g爜"]);
+ $("#HEquipName").val(data[0]["璁惧鍚嶇О"]);
+ $("#HBeginDate").val(Pub_Format(data[0]["寮�濮嬫椂闂�"], "yyyy-MM-dd hh:mm:ss"));
+ $("#HEndDate").val(Pub_Format(data[0]["缁撴潫鏃堕棿"], "yyyy-MM-dd hh:mm:ss"));
+ } else {
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ },
+ error: function (err) {
+ layer.msg("鎺ュ彛璇锋眰澶辫触锛�" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ })
+ }
+
+ //鏍规嵁娴佽浆鍗�,宸ュ簭,璁惧,鐗╂枡 鑾峰彇浜у搧宸ヨ壓鍙傛暟娓呭崟鐨� 宸ヨ壓鍙傛暟
+ function Get_TechParam() {
+ HMater = $("#HMaterID").val();
+ HProc = $("#HProcID").val();
+ HEquId = $("#HEquipID").val();
+ HTeachName = $("#HTechParamName").val() == "" ? "":$("#HTechParamName").val();
+ $.ajax({
+ url: GetWEBURL() + "/QC_CustomerAppealReport/Get_TechParamList",
+ type: "GET",
+ async: false,
+ data: { "HMaterID": HMater, "HProID": HProc, "HEquId": HEquId, "HTeachName": HTeachName,"user": sessionStorage["HUserName"] },
+ success: function (result) {
+ if (result.count == 1) {
+ var data = [];
+ var col = [];
+ //缁欑┖鐨勬暟缁勮祴鍊�
+ for (var key in result.list) {
+ data.push({ "id": result.list[key].ColmCols, "name": result.list[key].ColmCols, "Type": result.list[key].ColmType });
+ }
+ //鍦ㄥ垪琛ㄥ乏杈规坊鍔犲嬀閫夋
+ col.push({ type: 'checkbox', fixed: 'left' });
+ for (var i = 0; i < data.length; i++) {
+ if ($.inArray(data[i].name, titleData) > -1) {
+ col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //闅愯棌id鍒�
+ }
+ else if (data[i].name == '宸ヨ壓鍙傛暟') {//娣诲姞瓒呴摼鎺�
+ col.push({
+ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: '宸ヨ壓鍙傛暟', templet: function (d) {
+ return '<span style="color: blue;">' + d.宸ヨ壓鍙傛暟 + '</span>'
+ }, style: 'cursor: pointer;'
+ });
+ }
+ else {
+ switch (data[i].Type) {
+ //int
+ case 'DateTime':
+ col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
+ break;
+ default:
+ col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
+ }
+ }
+ }
+
+ //鍔ㄦ�佹樉绀哄垪鍚�
+ option_HTeach = {
+ elem: '#mainTable_HTeach'
+ , toolbar: '#toolbarDemo1'
+ , cols: [col]
+ , data: result.data
+ , height: 'full-80'
+ , page: true
+ , limits: [50, 500, 5000, 50000]
+ , limit: 50
+ , cellMinWidth: 90
+ }
+ table.render(option_HTeach);
+ } else {
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ },
+ error: function (err) {
+ layer.msg("鎺ュ彛璇锋眰澶辫触锛�" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ })
+ }
+
+ //#region 鑾峰彇鍙傛暟
+ function getUrlVars() {
+ var vars = [], hash;
+ var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+ for (var i = 0; i < hashes.length; i++) {
+ hash = hashes[i].split('=');
+ vars.push(hash[0]);
+ vars[hash[0]] = hash[1];
+ }
+ return vars;
+ }
+ //#endregion
//#region 闅愯棌鍒楄缃�
function get_HideColumn() {
--
Gitblit v1.9.1