From b742f00aac8e1e1bb628232383c35e67f4a41e4e Mon Sep 17 00:00:00 2001
From: cwjbxqmz <1134865194@qq.com>
Date: 星期五, 26 一月 2024 15:21:28 +0800
Subject: [PATCH] 1
---
WebTM/views/模治具管理/模治具管理/Gy_MouldFileList.html | 353 +++++++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 246 insertions(+), 107 deletions(-)
diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_MouldFileList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_MouldFileList.html"
index 59da25d..f59618d 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_MouldFileList.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_MouldFileList.html"
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>妯″叿妗f</title>
+ <title>鍣ㄥ叿妗f</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
@@ -11,6 +11,7 @@
<style type="text/css">
</style>
<script src="../../../layuiadmin/layui/layui.js"></script>
+ <script src="../../../layuiadmin/soulTable.slim.js"></script>
</head>
<body>
@@ -26,21 +27,15 @@
<span></span>
</div>
</div>
- <div style="padding: 10px;">
- <button type="button" lay-submit="" class="layui-btn" lay-filter="btnAdd" style="padding:0 5px">鏂板</button>
- <button type="button" lay-submit="" class="layui-btn" lay-filter="btnModify" style="padding:0 5px">淇敼</button>
- <button type="button" lay-submit="" class="layui-btn" lay-filter="btndelete" style="padding:0 5px">鍒犻櫎</button>
- <button type="button" lay-submit="" class="layui-btn" lay-filter="btn-Audit" style="padding:0 5px">瀹℃牳</button>
- <button type="button" lay-submit="" class="layui-btn" lay-filter="btn-DeAudit" style="padding:0 5px">鍙嶅鏍�</button>
- </div>
+
<div class="layui-inline">
- <label class="layui-form-label">妯″叿缂栧彿</label>
+ <label class="layui-form-label">鍣ㄥ叿缂栧彿</label>
<div class="layui-input-block">
<input type="text" class="layui-input" name="HNumber" id="HNumber">
</div>
</div>
<div class="layui-inline">
- <label class="layui-form-label">妯″叿鍚嶇О</label>
+ <label class="layui-form-label">鍣ㄥ叿鍚嶇О</label>
<div class="layui-input-block">
<input type="text" class="layui-input" name="HName" id="HName">
</div>
@@ -55,14 +50,17 @@
<table class="" id="mainTable" lay-filter="mainTable"></table>
<script type="text/html" id="toolbarDemo">
<div class="layui-btn-container">
- <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>棰勮</button>-->
- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>鍒锋柊</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>纭</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>椹冲洖</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>璇︽儏</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>鐢熸垚閫佽揣鍗�</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>閫�鍑�</button>
-
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btnAdd"><i class="layui-icon layui-icon-add-1"></i>鏂板</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btnModify"><i class="layui-icon layui-icon-edit"></i>缂栬緫</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>棰勮</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>鎵撳嵃</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btndelete"><i class="layui-icon layui-icon-delete"></i>鍒犻櫎</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit"><i class="layui-icon layui-icon-radio"></i>瀹℃牳</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>鍙嶅鏍�</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>鍒锋柊</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>閫�鍑�</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Initialize"><i class="layui-icon layui-icon-share"></i>鍒濆鍖�</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="get_BatchGen"><i class="layui-icon layui-icon-add-1"></i>鎵归噺鐢熸垚</button>
</div>
</script>
</form>
@@ -74,12 +72,13 @@
<script src="../../../layuiadmin/Scripts/json2.js"></script>
<script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
<script src="../../../layuiadmin/Scripts/webConfig.js"></script>
+ <script src="../../../layuiadmin/PubCustom.js"></script>
<script>
layui.config({
base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
}).extend({
index: 'lib/index', //涓诲叆鍙fā鍧�
- }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
+ }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate','soulTable'], function () {
//#region 鍏叡鍙橀噺
var $ = layui.$
, admin = layui.admin
@@ -89,6 +88,7 @@
, element = layui.element
, laypage = layui.laypage
, laydate = layui.laydate
+ , soulTable = layui.soulTable
var sWhere = "";
var option = [];
//#endregion
@@ -99,43 +99,53 @@
//#endregion
//#region 椤甸潰鎸夐挳鐐规浜嬩欢瑙﹀彂
-
+ table.on('toolbar(mainTable)', function (obj) {
+ switch (obj.event) {
+ //鏂板鎸夐挳
+ case 'btnAdd': set_AddNew();
+ break;
+ //棰勮
+ case 'btn-view': get_ViewReport();
+ break;
+ //鎵撳嵃
+ case 'btn-print': get_PrintReport();
+ break;
+ //缂栬緫鎸夐挳
+ case 'btnModify': set_ShowBill();
+ break;
+ //鍒犻櫎鎸夐挳
+ case 'btndelete': set_DeleteBill();
+ break;
+ //瀹℃牳鎸夐挳
+ case 'btn-Audit': set_CheckBill();
+ break;
+ //鍙嶅鏍告寜閽�
+ case 'btn-DeAudit': set_AbandonCheck();
+ break;
+ //鍒锋柊
+ case 'get_Refresh': get_Refresh();
+ break;
+ //閫�鍑烘寜閽�
+ case 'get_Exit': Pub_Close(2);
+ break;
+ //鍒濆鍖栨寜閽�
+ case 'get_Initialize': get_Initialize();
+ break;
+ //鎵归噺鐢熸垚鎸夐挳
+ case 'get_BatchGen': get_BatchGen();
+ break;
+ };
+ });
//鏌ヨ鎸夐挳
form.on('submit(btnSearch)', function (data) {
get_FastQuery();
});
- //鏂板鎸夐挳
- form.on('submit(btnAdd)', function (data) {
- set_AddNew();
- });
-
- //淇敼鎸夐挳
- form.on('submit(btnModify)', function (data) {
- set_ShowBill();
- });
-
- //鍒犻櫎
- form.on('submit(btndelete)', function (obj) {
- set_DeleteBill();
- });
-
- //瀹℃牳
- form.on('submit(btn-Audit)', function (obj) {
- set_CheckBill();
- });
-
- //鍙嶅鏍�
- form.on('submit(btn-DeAudit)', function (obj) {
- set_AbandonCheck();
- });
-
//閲嶇疆鎸夐挳
form.on('submit(btnReSearch)', function (data) {
- $("#HNumber").val("");
- $("#HName").val("");
- $("#btnSearch").click();
+ set_ClearQuery();
});
+
//#endregion
@@ -153,65 +163,73 @@
{
option = {
elem: '#mainTable'
- //, toolbar: '#toolbarDemo'
+ , toolbar: '#toolbarDemo'
, height: 'full-50'
, page: true
+ , limits: [50, 500, 5000, 20000]
+ , limit: 50 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
, cellMinWidth: 200
- , limit: 50
- , limits: [50, 200, 500, 1000, 5000, 10000]
+ , done: function (res, curr, count) {
+ soulTable.render(this);
+ }
, cols: [[
{ type: 'checkbox', fixed: 'left' }
, { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
- , { field: '鏃ユ湡', title: '鏃ユ湡', templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
- , { field: '鏉$爜缂栧彿', title: '鏉$爜缂栧彿' }
- , { field: '妯″叿鍝佺被', title: '妯″叿鍝佺被' }
- , { field: '妯″叿鐘舵��', title: '妯″叿鐘舵��' }
- , { field: '妯″叿缂栧彿', title: '妯″叿缂栧彿' }
- , { field: '妯″叿鍚嶇О', title: '妯″叿鍚嶇О' }
- , { field: '妯″叿鍨嬪彿', title: '妯″叿鍨嬪彿' }
- , { field: '褰撳墠妯″叿瑙勬牸', title: '褰撳墠妯″叿瑙勬牸' }
- , { field: '鍒濆妯″叿瑙勬牸', title: '鍒濆妯″叿瑙勬牸' }
- , { field: '褰撳墠璁捐瀵垮懡', title: '褰撳墠璁捐瀵垮懡' }
- , { field: '妯″叿ERP鐗╂枡', title: '妯″叿ERP鐗╂枡' }
- , { field: '鐩村緞', title: '鐩村緞' }
- , { field: '杈呭姪灞炴��', title: '杈呭姪灞炴��' }
- , { field: '杈呭姪灞炴��2', title: '杈呭姪灞炴��2' }
- , { field: '鍥惧彿', title: '鍥惧彿' }
- , { field: '鐢熶骇浜у搧鍨嬪彿', title: '鐢熶骇浜у搧鍨嬪彿' }
- , { field: 'HUnitID', title: 'HUnitID', hide: true }
- , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅' }
- , { field: '鍑哄巶鏃ユ湡', title: '鍑哄巶鏃ユ湡', templet: "<div>{{d.鍑哄巶鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍑哄巶鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
- , { field: '鍑哄巶缂栧彿', title: '鍑哄巶缂栧彿'}
- , { field: '浣跨敤閮ㄩ棬浠g爜', title: '浣跨敤閮ㄩ棬浠g爜' }
- , { field: '浣跨敤閮ㄩ棬', title: '浣跨敤閮ㄩ棬' }
- , { field: 'HSupID', title: 'HSupID', hide: true }
- , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�' }
- , { field: '渚涘簲鍟�', title: '渚涘簲鍟�' }
- , { field: 'HWhID', title: 'HWhID', hide: true }
- , { field: '榛樿浠撳簱', title: '榛樿浠撳簱' }
- , { field: 'HSPID', title: 'HSPID', hide: true }
- , { field: '榛樿浠撲綅', title: '榛樿浠撲綅' }
- , { field: '鐗堟湰', title: '鐗堟湰' }
- , { field: '鍒濆璁捐瀵垮懡', title: '鍒濆璁捐瀵垮懡' }
- , { field: '浣跨敤瀵垮懡', title: '浣跨敤瀵垮懡' }
- , { field: '鍓╀綑瀵垮懡', title: '鍓╀綑瀵垮懡' }
- , { field: '宸茬敓浜ф暟閲�', title: '宸茬敓浜ф暟閲�' }
- , { field: '宸茬敓浜ч噸閲�', title: '宸茬敓浜ч噸閲�' }
- , { field: '澶囨敞', title: '澶囨敞' }
- , { field: '鍏宠仈鏁伴噺', title: '鍏宠仈鏁伴噺' }
- , { field: '鍒跺崟浜�', title: '鍒跺崟浜�' }
- , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
- , { field: '瀹℃牳浜�', title: '瀹℃牳浜�' }
- , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
- , { field: '淇敼浜�', title: '淇敼浜�' }
- , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', templet: "<div>{{d.淇敼鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
- , { field: '鍏抽棴浜�', title: '鍏抽棴浜�' }
- , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', templet: "<div>{{d.鍏抽棴鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
- , { field: 'hbilltype', title: 'hbilltype', hide: true }
- , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�' }
- , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷' }
- , { field: 'HMoudType', title: 'HMoudType', hide: true }
- , { field: 'hsubid', title: 'hsubid', hide: true }
+ , { field: '鏃ユ湡', title: '鏃ユ湡', templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>",sort:true}
+ , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true }
+ , { field: '鏉$爜缂栧彿', title: '鏉$爜缂栧彿', sort: true }
+ , { field: '瀵瑰簲ERP鐗╂枡缂栫爜', title: '鐗╂枡缂栧彿', sort: true }
+ , { field: '妯″叿缂栧彿', title: '鍣ㄥ叿缂栧彿', sort: true }
+ , { field: '妯″叿鍚嶇О', title: '鍣ㄥ叿鍚嶇О', sort: true }
+ , { field: '妯″叿鍨嬪彿', title: '鍣ㄥ叿鍨嬪彿', sort: true }
+ , { field: '妯″叿鍝佺被', title: '鍣ㄥ叿鍝佺被', sort: true }
+ , { field: '妯″叿鐘舵��', title: '鍣ㄥ叿鐘舵��', sort: true }
+ , { field: '瀵瑰簲ERP鐗╂枡缂栫爜', title: '鍣ㄥ叿ERP鐗╂枡', sort: true }
+ , { field: '鐩村緞', title: '鐩村緞', sort: true }
+ , { field: '杈呭姪灞炴��', title: '杈呭姪灞炴��', sort: true }
+ , { field: '杈呭姪灞炴��2', title: '杈呭姪灞炴��2', sort: true }
+ , { field: '鍥惧彿', title: '鍥惧彿', sort: true }
+ , { field: '鐢熶骇浜у搧鍨嬪彿', title: '鐢熶骇浜у搧鍨嬪彿', sort: true }
+ , { field: 'HUnitID', title: 'HUnitID', hide: true, sort: true }
+ , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', sort: true }
+ , { field: '鍑哄巶鏃ユ湡', title: '鍑哄巶鏃ユ湡', templet: "<div>{{d.鍑哄巶鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍑哄巶鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: '鍑哄巶缂栧彿', title: '鍑哄巶缂栧彿', sort: true }
+ , { field: '浣跨敤閮ㄩ棬浠g爜', title: '浣跨敤閮ㄩ棬浠g爜', sort: true }
+ , { field: '浣跨敤閮ㄩ棬', title: '浣跨敤閮ㄩ棬', sort: true }
+ , { field: 'HSupID', title: 'HSupID', hide: true, sort: true }
+ , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', sort: true }
+ , { field: '渚涘簲鍟�', title: '渚涘簲鍟�', sort: true }
+ , { field: 'HWhID', title: 'HWhID', hide: true, sort: true }
+ , { field: '榛樿浠撳簱', title: '榛樿浠撳簱', sort: true }
+ , { field: 'HSPID', title: 'HSPID', hide: true, sort: true }
+ , { field: '榛樿浠撲綅', title: '榛樿浠撲綅', sort: true }
+ , { field: '鐗堟湰', title: '鐗堟湰', sort: true }
+ , { field: '褰撳墠浠撳簱', title: '褰撳墠浠撳簱', sort: true }
+ , { field: '褰撳墠浠撲綅', title: '褰撳墠浠撲綅', sort: true }
+ , { field: '铏氭嫙浠撶被鍨�', title: '铏氭嫙浠撶被鍨�', sort: true }
+ , { field: '铏氭嫙浠�', title: '铏氭嫙浠�', sort: true }
+ , { field: '褰撳墠妯″叿瑙勬牸', title: '褰撳墠鍣ㄥ叿瑙勬牸', sort: true }
+ , { field: '鍒濆妯″叿瑙勬牸', title: '鍒濆鍣ㄥ叿瑙勬牸', sort: true }
+ , { field: '褰撳墠璁捐瀵垮懡', title: '褰撳墠璁捐瀵垮懡', sort: true }
+ , { field: '鍒濆璁捐瀵垮懡', title: '鍒濆璁捐瀵垮懡', sort: true }
+ , { field: '浣跨敤瀵垮懡', title: '浣跨敤瀵垮懡', sort: true }
+ , { field: '鍓╀綑瀵垮懡', title: '鍓╀綑瀵垮懡', sort: true }
+ , { field: '宸茬敓浜ф暟閲�', title: '宸茬敓浜ф暟閲�', sort: true }
+ , { field: '宸茬敓浜ч噸閲�', title: '宸茬敓浜ч噸閲�', sort: true }
+ , { field: '澶囨敞', title: '澶囨敞', sort: true }
+ , { field: '鍏宠仈鏁伴噺', title: '鍏宠仈鏁伴噺', sort: true }
+ , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', sort: true }
+ , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', sort: true }
+ , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: '淇敼浜�', title: '淇敼浜�', sort: true }
+ , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', templet: "<div>{{d.淇敼鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', sort: true }
+ , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', templet: "<div>{{d.鍏抽棴鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: 'hbilltype', title: 'hbilltype', hide: true, sort: true }
+ , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', hide: true, sort: true }
+ , { field: 'HMoudType', title: 'HMoudType', hide: true, sort: true }
+ , { field: 'hsubid', title: 'hsubid', hide: true, sort: true }
]]
};
}
@@ -219,11 +237,12 @@
//鏌ヨ
function get_Display(sWhere) {
var index = layer.load(0, { shade: false });
+ var ModRightNameSelect = 'Gy_MouldFileList';
//杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
$.ajax({
url: GetWEBURL() + '/Gy_Mould/list1',
type: "GET",
- data: { "sWhere": sWhere },
+ data: { "sWhere": sWhere, "ModRightNameSelect": ModRightNameSelect, "user": sessionStorage["HUserName"] },
success: function (data1) {
if (data1.count == 1) {
option.data = data1.data;
@@ -254,13 +273,21 @@
sWhere = "";//璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
}
+ //閲嶇疆杩囨护鏉′欢
+ function set_ClearQuery() {
+ $("#HNumber").val("")
+ $("#HName").val("");
+ sWhere = "";
+ get_Display(sWhere);
+ }
+
//鏂板
function set_AddNew() {
//椤甸潰灞�-鑷畾涔�
layer.open({
type: 2,
skin: 'layui-layer-rim', //鍔犱笂杈规
- title: '鏂板妯″叿妗f鍒楄〃',
+ title: '鏂板鍣ㄥ叿妗f鍒楄〃',
closeBtn: false,
shift: 2,
area: ['100%', '100%'],
@@ -287,7 +314,7 @@
layer.open({
type: 2
, area: ['100%', '100%']
- , title: '缂栬緫妯″叿妗f鍒楄〃'
+ , title: '缂栬緫鍣ㄥ叿妗f鍒楄〃'
, shade: 0.6 //閬僵閫忔槑搴�
, maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
, anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
@@ -313,13 +340,13 @@
, data = checkStatus.data;
if (checkStatus.data.length === 1) {
var HInterID = data[0].hmainid.toString();
-
+ var ModRightNameDelete = 'Gy_MouldFile_Delete';
//閫昏緫鍒犻櫎鏂规硶
layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
$.ajax({
type: "GET",
url: GetWEBURL() + '/Gy_Mould_Edit/Delete_Json',
- data: { "hmainid": HInterID },
+ data: { "hmainid": HInterID, "ModRightNameDelete": ModRightNameDelete, "user": sessionStorage["HUserName"] },
success: function (result) {
if (result.count == 1) {
layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -360,7 +387,7 @@
$.ajax({
type: "GET",
url: GetWEBURL() + "/Gy_Mould/AuditProcessReportList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
- data: { "HInterID": HInterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] },
+ data: { "HInterID": HInterID,"IsAudit": 0, "CurUserName": sessionStorage["HUserName"] },
success: function (result) {
if (result.count == 1) {
layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -426,6 +453,118 @@
}
+ //棰勮
+ function get_ViewReport() {
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+ if (checkStatus.data.length === 1) {
+ layer.open({
+ type: 2
+ , area: ['50%', '50%']
+ , title: '鎵撳嵃妯$増閫夋嫨'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HEquipFileMainBill', 'yes']
+ , resize: false
+ })
+ }
+ else {
+ layer.msg('璇烽�夋嫨涓�琛屾暟鎹墦鍗帮紒');
+ }
+ }
+
+ //鎵撳嵃
+ function get_PrintReport() {
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+ if (checkStatus.data.length === 1) {
+ layer.open({
+ type: 2
+ , area: ['50%', '50%']
+ , title: '鎵撳嵃妯$増閫夋嫨'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HEquipFileMainBill', 'yes']
+ , resize: false
+ })
+ }
+ else {
+ layer.msg('璇烽�夋嫨涓�琛屾暟鎹墦鍗帮紒');
+ }
+ }
+
+ //鍒锋柊
+ function get_Refresh() {
+ $("#HNumber").val("");
+ $("#HName").val("");
+ $("#btnSearch").click();
+ }
+
+ //鍒濆鍖�
+ function get_Initialize() {
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+ if (checkStatus.data.length === 1) {
+ var HInterID = data[0].hmainid.toString();
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + '/Gy_Material/InitializeProdInBill',
+ data: { "hmainid": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"] },
+ success: function (result) {
+ if (result.count == 1) {
+ layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+ // 寰楀埌frame绱㈠紩
+ var index = layer.getFrameIndex(window.name);
+ //鍏抽棴褰撳墠frame
+ layer.close(index);
+ //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+ window.location.reload();
+ });
+
+ } else {
+ layer.alert(result.code + result.Message, { icon: 5 });
+ }
+ }, error: function () {
+ layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+ }
+ });
+ }
+ else {
+ layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒');
+ }
+ }
+
+ //鎵归噺鐢熸垚
+ function get_BatchGen() {
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+ if (checkStatus.data.length === 1) {
+ var HInterID = data[0].hmainid.toString();
+ //椤甸潰灞�-鑷畾涔�
+ layer.open({
+ type: 2,
+ skin: 'layui-layer-rim', //鍔犱笂杈规
+ title: '鎵归噺鏂板鍣ㄥ叿妗f',
+ closeBtn: false,
+ shift: 2,
+ area: ['70%', '70%'],
+ maxmin: true,
+ content: 'BatchGen_MouldFile.html?OperationType=3&linterid=' + HInterID + '&HSouceBillType=',
+ end: function () {
+ //鍒锋柊椤甸潰,
+ location.reload();
+ },
+ success: function (layero, index) {
+
+ }
+ });
+ }
+ else {
+ layer.msg('璇烽�夋嫨涓�琛屾暟鎹紒');
+ }
+ }
//浠ヤ笂鏄痩ayui妯″潡
});
--
Gitblit v1.9.1