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/模治具管理/模治具仓库管理/Sc_MouldRepairChangeBillList.html | 183 ++++++++++++++++++++++++++++++++++-----------
1 files changed, 136 insertions(+), 47 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\344\273\223\345\272\223\347\256\241\347\220\206/Sc_MouldRepairChangeBillList.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\344\273\223\345\272\223\347\256\241\347\220\206/Sc_MouldRepairChangeBillList.html"
index 7bfb315..90e4611 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\344\273\223\345\272\223\347\256\241\347\220\206/Sc_MouldRepairChangeBillList.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\344\273\223\345\272\223\347\256\241\347\220\206/Sc_MouldRepairChangeBillList.html"
@@ -16,6 +16,7 @@
<script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
<script src="../../../layuiadmin/Scripts/webConfig.js"></script>
<script src="../../../layuiadmin/PubCustom.js"></script>
+ <script src="../../../layuiadmin/soulTable.slim.js"></script>
<style type="text/css">
input.layui-input.layui-unselect {
padding-right: 0;
@@ -72,6 +73,8 @@
<div class="layui-btn-container">
<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-file-b"></i>鏂板</button>
<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>缂栬緫</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-audit"><i class="layui-icon layui-icon-repeat"></i>瀹℃牳</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Faudit"><i class="layui-icon layui-icon-refresh"></i>鍙嶅鏍�</button>
<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></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>
@@ -87,7 +90,7 @@
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
@@ -98,6 +101,7 @@
, laypage = layui.laypage
, laydate = layui.laydate
, util = layui.util
+ , soulTable = layui.soulTable
//鏌ヨ鏉′欢
var sWhere = "";
var option = [];
@@ -123,6 +127,12 @@
break;
//鍒犻櫎
case 'btn-Delete': set_DeleteBill();
+ break;
+ //瀹℃牳
+ case 'btn-audit': get_Audit();
+ break;
+ //鍙嶅鏍�
+ case 'btn-Faudit': get_FAudit();
break;
//鍒锋柊
case 'get_Refresh': get_Refresh();
@@ -163,54 +173,69 @@
, height: 'full-50'
, page: true
, cellMinWidth: 90
+ , limit: 50
+ , limits: [50, 500, 5000, 20000]
+ , done: function (res, curr, count) {
+ soulTable.render(this);
+ }
, cols: [[
{ type: 'checkbox', fixed: 'left' }
- , { field: 'hmainid', title: '鍗曟嵁ID', hide: true }
- ,{ field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 195 }
- , { field: '寮�濮嬫棩鏈�', title: '寮�濮嬫棩鏈�', width: 125, templet: "<div>{{d.寮�濮嬫棩鏈� ==null ?'':layui.util.toDateString(d.寮�濮嬫棩鏈�, 'yyyy-MM-dd')}}</div>" }
- , { field: '缁撴潫鏃ユ湡', title: '缁撴潫鏃ユ湡', width: 125, templet: "<div>{{d.缁撴潫鏃ユ湡 ==null ?'':layui.util.toDateString(d.缁撴潫鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
- , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', width: 110, hide: true }
- , { field: '妯″叿浠g爜', title: '鍣ㄥ叿浠g爜', width: 125 }
- , { field: '妯″叿鍚嶇О', title: '鍣ㄥ叿鍚嶇О', width: 125 }
- , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 125 }
- , { field: '璁″垝宸ユ椂', title: '璁″垝宸ユ椂', width: 125 }
- , { field: '瀹為檯宸ユ椂', title: '瀹為檯宸ユ椂', width: 125 }
- , { field: '鏀瑰埗鏁伴噺', title: '鏀瑰埗鏁伴噺', width: 125 }
- , { field: 'HNewMaterID', title: 'HNewMaterID', width: 200, hide: true }
- , { field: '鏂扮墿鏂欎唬鐮�', title: '鏂扮墿鏂欎唬鐮�', width: 115 }
- , { field: '鏂扮墿鏂�', title: '鏂扮墿鏂�', width: 125 }
- , { field: 'HRepairID', title: 'HRepairID', width: 200, hide: true }
- , { field: '鏀瑰埗椤圭洰浠g爜', title: '鏀瑰埗椤圭洰浠g爜', width: 115 }
- , { field: '鏀瑰埗椤圭洰', title: '鏀瑰埗椤圭洰', width: 125 }
- , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true }
- , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜', width: 115 }
- , { field: '閮ㄩ棬', title: '閮ㄩ棬', width: 125 }
- , { field: 'HEmpID', title: '鐢宠浜篒D', width: 125,hide: true }
- , { field: '鐢宠浜�', title: '鐢宠浜�', width: 125 }
- , { field: 'HManagerID', title: '璐熻矗浜篒D', width: 125, hide: true }
- , { field: '璐熻矗浜�', title: '璐熻矗浜�', width: 125 }
- , { field: '鏀瑰埗瑕佹眰', title: '鏀瑰埗瑕佹眰', width: 125 }
- , { field: '鏀瑰埗鍐呭', title: '鏀瑰埗鍐呭', width: 125 }
- , { field: '澶囨敞', title: '澶囨敞', width: 125 }
- , { field: '鍐呴儴鍗曟嵁鍙�', title: '鍐呴儴鍗曟嵁鍙�', width: 115 }
- , { field: 'hsubid', title: 'hsubid', width: 200, hide: true }
- , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true }
- , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 125 }
- , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 200, templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
- , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 125 }
- , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 200, templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ? '':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
- , { field: '淇敼浜�', title: '淇敼浜�', width: 125 }
- , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 200, templet: "<div>{{d.淇敼鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
- , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 125 }
- , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 200, templet: "<div>{{d.鍏抽棴鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
- , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 125 }
- , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 200, templet: "<div>{{d.浣滃簾鏃ユ湡 ==null ?'':layui.util.toDateString(d.浣滃簾鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
- , { field: '琛屽叧闂汉', title: '琛屽叧闂汉', width: 125 }
- , { field: '鍏抽棴绫诲瀷', title: '鍏抽棴绫诲瀷', width: 125 }
- , { field: '婧愬崟涓诲唴鐮�', title: '婧愬崟涓诲唴鐮�', width: 200, hide: true }
- , { field: '婧愬崟瀛愬唴鐮�', title: '婧愬崟瀛愬唴鐮�', width: 200, hide: true }
- , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 125 }
- , { field: '婧愬崟绫诲瀷', title: '婧愬崟绫诲瀷', width: 125 }
+ , { field: 'hmainid', title: '鍗曟嵁ID', hide: true, sort: true }
+ , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 195, sort: true }
+ , { field: '寮�濮嬫棩鏈�', title: '寮�濮嬫棩鏈�', width: 125, templet: "<div>{{d.寮�濮嬫棩鏈� ==null ?'':layui.util.toDateString(d.寮�濮嬫棩鏈�, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: '缁撴潫鏃ユ湡', title: '缁撴潫鏃ユ湡', width: 125, templet: "<div>{{d.缁撴潫鏃ユ湡 ==null ?'':layui.util.toDateString(d.缁撴潫鏃ユ湡, 'yyyy-MM-dd')}}</div>", sort: true }
+ , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', width: 110, hide: true, sort: true }
+
+ , { field: 'HRepairID', title: 'HRepairID', width: 200, hide: true, sort: true }
+ , { field: '鏀瑰埗椤圭洰浠g爜', title: '鏀瑰埗椤圭洰浠g爜', width: 115, sort: true }
+ , { field: '鏀瑰埗椤圭洰', title: '鏀瑰埗椤圭洰', width: 125, sort: true }
+
+ , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true, sort: true }
+ , { field: '閮ㄩ棬浠g爜', title: '鏀瑰埗閮ㄩ棬浠g爜', width: 115, sort: true }
+ , { field: '閮ㄩ棬', title: '鏀瑰埗閮ㄩ棬', width: 125, sort: true }
+ , { field: 'HSupID', title: 'HDeptID', width: 200, hide: true, sort: true }
+ , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 115, sort: true }
+ , { field: '渚涘簲鍟�', title: '渚涘簲鍟�', width: 125, sort: true }
+
+ , { field: 'HEmpID', title: '鐢宠浜篒D', width: 125, hide: true, sort: true }
+ , { field: '鐢宠浜�', title: '鐢宠浜�', width: 125, sort: true }
+ , { field: 'HManagerID', title: '璐熻矗浜篒D', width: 125, hide: true, sort: true }
+ , { field: '璐熻矗浜�', title: '璐熻矗浜�', width: 125, sort: true }
+
+ , { field: '鏀瑰埗绫诲瀷', title: '鏀瑰埗绫诲瀷', width: 125, sort: true }
+ , { field: 'HNewMaterID', title: 'HNewMaterID', width: 125, hide: true, sort: true }
+ , { field: '鏂扮墿鏂欎唬鐮�', title: '鏂扮墿鏂欎唬鐮�', width: 125, sort: true }
+ , { field: '鏂扮墿鏂�', title: '鏂扮墿鏂�', width: 125, sort: true }
+ , { field: '鏂板悕绉�', title: '鏂板悕绉�', width: 125, sort: true }
+ , { field: '鏂拌鏍�', title: '鏂拌鏍�', width: 125, sort: true }
+ , { field: '鏂板瀷鍙�', title: '鏂板瀷鍙�', width: 125, sort: true }
+
+ , { field: '璁″垝宸ユ椂', title: '璁″垝宸ユ椂', width: 125, sort: true }
+ , { field: '瀹為檯宸ユ椂', title: '瀹為檯宸ユ椂', width: 125, sort: true }
+ , { field: '鏀瑰埗鏁伴噺', title: '鏀瑰埗鏁伴噺', width: 125, sort: true }
+
+ , { field: '鏀瑰埗瑕佹眰', title: '鏀瑰埗瑕佹眰', width: 125, sort: true }
+ , { field: '鏀瑰埗鍐呭', title: '鏀瑰埗鍐呭', width: 125, sort: true }
+ , { field: '澶囨敞', title: '澶囨敞', width: 125, sort: true }
+ , { field: '鍐呴儴鍗曟嵁鍙�', title: '鍐呴儴鍗曟嵁鍙�', width: 115, sort: true }
+ , { field: 'hsubid', title: 'hsubid', width: 200, hide: true, sort: true }
+ , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true, sort: true }
+ , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 125, sort: true }
+ , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 200, templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
+ , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 125, sort: true }
+ , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 200, templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ? '':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
+ , { field: '淇敼浜�', title: '淇敼浜�', width: 125, sort: true }
+ , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 200, templet: "<div>{{d.淇敼鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
+ , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 125, sort: true }
+ , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 200, templet: "<div>{{d.鍏抽棴鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
+ , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 125, sort: true }
+ , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 200, templet: "<div>{{d.浣滃簾鏃ユ湡 ==null ?'':layui.util.toDateString(d.浣滃簾鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
+ , { field: '琛屽叧闂汉', title: '琛屽叧闂汉', width: 125, sort: true }
+ , { field: '鍏抽棴绫诲瀷', title: '鍏抽棴绫诲瀷', width: 125, sort: true }
+ , { field: '婧愬崟涓诲唴鐮�', title: '婧愬崟涓诲唴鐮�', width: 200, hide: true, sort: true }
+ , { field: '婧愬崟瀛愬唴鐮�', title: '婧愬崟瀛愬唴鐮�', width: 200, hide: true, sort: true }
+ , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 125, sort: true }
+ , { field: '婧愬崟绫诲瀷', title: '婧愬崟绫诲瀷', width: 125, sort: true }
]]
};
}
@@ -348,6 +373,70 @@
layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒');
}
}
+ //瀹℃牳
+ function get_Audit() {
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+ if (checkStatus.data.length === 1) {
+ var InterID = data[0].hmainid.toString();
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "Sc_MouldRepairChangeHouseBill/AuditMouldRepairChangeBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ data: { "HInterID": InterID, "user": sessionStorage["HUserName"], "flag": 1 },
+ success: function (result) {
+ if (result.count == 1) {
+ layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+ 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_FAudit() {
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+ if (checkStatus.data.length === 1) {
+ var InterID = data[0].hmainid.toString();
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "Sc_MouldRepairChangeHouseBill/AuditMouldRepairChangeBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ data: { "HInterID": InterID, "user": sessionStorage["HUserName"], "flag": 2},
+ success: function (result) {
+ if (result.count == 1) {
+ layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+ 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_Refresh() {
set_ClearQuery();
--
Gitblit v1.9.1