From c9d0da28b32debada8d015ab1e2cdc4502cd6708 Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期四, 25 一月 2024 16:41:16 +0800
Subject: [PATCH] 1
---
WebTM/views/生产工序管理/工序派工单/Sc_ProcessSendWorkList.html | 226 ++++++++++++++++++++++++++++++++++++++------------------
1 files changed, 152 insertions(+), 74 deletions(-)
diff --git "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/Sc_ProcessSendWorkList.html" "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/Sc_ProcessSendWorkList.html"
index af25940..ff89258 100644
--- "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/Sc_ProcessSendWorkList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/Sc_ProcessSendWorkList.html"
@@ -1,15 +1,16 @@
锘�<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>鐢熶骇宸ュ簭姹囨姤鍗曞垪琛�</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>鐢熶骇宸ュ簭娲惧伐鍗曞垪琛�</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">
<link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
<script src="../../../layuiadmin/layui/layui.js"></script>
-
+ <script src="../../../layuiadmin/soulTable.slim.js"></script>
+
</head>
<body>
<div class="layui-fluid">
@@ -66,12 +67,15 @@
<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="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="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-Pushdown"><i class="layui-icon layui-icon-form"></i>涓嬫帹</button>
</div>
</script>
@@ -89,7 +93,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 () {
var $ = layui.$
, admin = layui.admin
, layer = layui.layer
@@ -98,84 +102,158 @@
, element = layui.element
, laypage = layui.laypage
, laydate = layui.laydate
+ , soulTable = layui.soulTable
//var sWhere = " 浜у搧浠g爜 = 'BX0002'";
var sWhere = "";
var option = {
elem: '#mainTable'
- //, toolbar: '#toolbarDemo'
+ , toolbar: '#toolbarDemo'
,height: 'full-50'
, page: true
- ,cellMinWidth: 90
+ , cellMinWidth: 90
+ , limit: 50
+ , limits: [50, 500, 5000, 20000]
+ , done: function (res, curr, count) {
+ soulTable.render(this);
+ }
, cols: [[
- //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 }
- { field: 'HDate', title: '鏃ユ湡', sort: true, width: 120 }
- , { field: 'HBillNo', title: '鍗曟嵁鍙�', sort: true, width: 170 }
- , { field: 'HBillStatus ', title: '鍗曟嵁鐘舵��', width: 105 }
- , { field: 'HICMOBillNo', title: '浠诲姟鍗曞彿' }
- , { field: 'HCheckItemNowID', title: '褰撳墠瀹℃牳椤圭洰' }
- , { field: 'HCheckItemNextID', title: '寰呭鏍搁」鐩�' }
- , { field: 'HCheckFlowID', title: '瀹℃壒娴�' }
- , { field: 'HICMOInterID', title: '浠诲姟鍗旾D', width: 115 }
- , { field: 'HProcPlanBillNo', title: '宸ュ簭璁″垝鍗曞彿', width: 115 }
- , { field: 'HPlanBeginDate', title: '宸ュ簭璁″垝寮�宸ユ棩鏈�' }
- , { field: 'HPlanEndDate', title: '宸ュ簭璁″垝瀹屽伐鏃ユ湡', width: 160 }
- , { field: 'HBatchNo', title: '鎵瑰彿', width: 160 }
- , { field: 'HSeOrderInterID ', title: '閿�鍞鍗曚富ID', width: 215 }
- ////, { field: 'hunitid', title: 'hunitid' }
- , { field: 'HSeOrderEntryID ', title: '閿�鍞瓙ID ', width: 115 }
- , { field: 'HSeOrderBillNo', title: '閿�鍞鍗曞彿' }
- ////, { field: 'hempid', title: 'hempid' }
- , { field: 'HProcID ', title: '宸ュ簭ID', width: 100 }
- , { field: 'HProcNumber', title: '宸ュ簭浠g爜' }
- , { field: 'HDeptID', title: '閮ㄩ棬ID' }
- , { field: 'HDeptNumber', title: '閮ㄩ棬浠g爜' }
- , { field: 'HGroupID', title: '鐝粍ID' }
- ////, { field: 'HCenterID', title: 'HCenterID' }
- , { field: 'HGroupNumber', title: '鐝粍浠g爜' }
- , { field: 'HMaterID ', title: '浜у搧ID' }
- ////, { field: 'hbomid', title: 'hbomid' }
- , { field: 'HMaterNumber', title: '浜у搧浠g爜' }
- ////, { field: 'HRoutingInterID', title: 'HRoutingInterID' }
- , { field: 'HUnitID ', title: '鍗曚綅ID' }
- , { field: 'HUnitNumber', title: '鍗曚綅浠g爜' }
- , { field: 'HRoutingInterID', title: '宸ュ簭璺嚎ID' }
- , { field: 'HPlanQty', title: '宸ュ簭璁″垝鐢熶骇鏁伴噺' }
- , { field: 'HExplanation', title: '鎽樿' }
- , { field: 'HInnerBillNo', title: '鍐呴儴鍗曟嵁鍙�' }
- , { field: 'HBacker', title: '閫�鍥炰汉' }
- , { field: 'HBackDate', title: '閫�鍥炴棩鏈� ' }
- , { field: 'HChecker', title: '瀹℃牳浜�' }
- , { field: 'HCheckDate', title: '瀹℃牳鏃ユ湡' }
- , { field: 'HMaker', title: '鍒跺崟浜�' }
- ////, { field: 'hsubid', title: 'hsubid' }
- , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡' }
- , { field: 'HUpDater', title: '淇敼浜�' }
- , { field: 'HUpDateDate', title: '淇敼鏃ユ湡' }
- , { field: 'HCloseMan', title: '鍏抽棴浜�' }
- , { field: 'HCloseDate', title: '鍏抽棴鏃ユ湡' }
- , { field: 'HCloseType', title: '鍏抽棴绫诲瀷 ' }
- , { field: 'HDeleteMan', title: '浣滃簾浜�' }
- , { field: 'HDeleteDate', title: '浣滃簾鏃ユ湡' }
- //, { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡' }
- //, { field: 'HDeleteMan', title: '鍏抽棴浜�' }
- //, { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡' }
- //, { field: '浣滃簾浜�', title: '浣滃簾浜�' }
- //, { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡' }
- //, { field: '琛屽叧闂汉', title: '琛屽叧闂汉' }
- //, { field: '鍏抽棴绫诲瀷', title: '鍏抽棴绫诲瀷' }
- //, { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷' }
- //, { field: '璁″垝璺熻釜鍙�', title: '璁″垝璺熻釜鍙�' }
+ { type: 'checkbox' }
+ ,{ field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
+ ,{ field: '鏃ユ湡', title: '鏃ユ湡', sort: true, width: 120 }
+ , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
+ , { field: 'HDeptID ', title: 'HDeptID', width: 105, sort: true }
+ , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜', sort: true }
+ , { field: '閮ㄩ棬', title: '閮ㄩ棬', sort: true }
+ , { field: 'HMaterID', title: 'HMaterID', sort: true }
+ , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', sort: true }
+ , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 115, sort: true }
+ , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 115, sort: true }
+ , { field: 'HUnitID', title: 'HUnitID', sort: true }
+ , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 160, sort: true }
+ , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 160, sort: true }
+ , { field: 'HprocID ', title: 'HprocID', width: 215, sort: true }
+ , { field: '宸ュ簭浠g爜 ', title: '宸ュ簭浠g爜 ', width: 115, sort: true }
+ , { field: '宸ュ簭', title: '宸ュ簭', sort: true }
+ , { field: 'HGroupID ', title: 'HGroupID', width: 100, sort: true }
+ , { field: '鐝粍浠g爜', title: '鐝粍浠g爜', sort: true }
+ , { field: '鐝粍鍚嶇О', title: '鐝粍鍚嶇О', sort: true }
+ , { field: 'HSourceID', title: 'HSourceID', sort: true }
+ , { field: '璧勬簮浠g爜', title: '璧勬簮浠g爜', sort: true }
+ , { field: '鐢熶骇璧勬簮', title: '鐢熶骇璧勬簮', sort: true }
+ , { field: 'HWorkerID ', title: 'HWorkerID', sort: true }
+ , { field: '鑱屽憳浠g爜', title: '鑱屽憳浠g爜', sort: true }
+ , { field: '鑱屽憳 ', title: '鑱屽憳', sort: true }
+ , { field: 'hsubid', title: 'hsubid', 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: 'HICMOInterID', title: 'HICMOInterID ', sort: true }
+ , { field: '鐢熶骇浠诲姟鍗曞彿', title: '鐢熶骇浠诲姟鍗曞彿', sort: true }
+ , { field: 'HSeOrderInterID', title: 'HSeOrderInterID', 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: 'HBillType', title: 'HBillType', sort: true }
+ , { field: 'HQtyDecimal', title: 'HQtyDecimal', sort: true }
+ , { field: 'HPriceDecimal', title: 'HPriceDecimal', sort: true }
+
]]
};
+
+ //澶村伐鍏锋爮浜嬩欢
+ table.on('toolbar(mainTable)', function (obj) {
+ var checkStatus = table.checkStatus(obj.config.id);
+ switch (obj.event) {
+ case 'btn-Pushdown':
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+ ajaxLabelData = data;
+ var rows = '';
+ var HEntry = '';
+ for (var i = 0; i < data.length; i++) {
+ rows += data[i].hmainid.toString() + ',' ;
+
+ }
+ if (checkStatus.data.length < 1)
+ {
+ layer.msg('璇烽�夋嫨涓�琛屾暟鎹笅鎺�');
+ } else
+ {
+
+ //椤甸潰灞�
+ layer.open({
+ type: 2 //page灞傜被鍨�
+ ,area: ['100%', '100%']
+ ,title: '鏂板宸ュ簭姹囨姤鍗�'
+ ,shade: 0.6 //閬僵閫忔槑搴�
+ ,maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../宸ュ簭姹囨姤鍗�/Sc_Add_ProcessReportList.html?hinterid=' + data[0].hmainid.toString() + '&lentryid=' + rows.toString().substring(0, rows.length - 1),
+ '&PlanBeginDate=' + data[0].璁″垝寮�宸ユ棩鏈�.toString(), '&PlanEndDate=' + data[0].璁″垝瀹屽伐鏃ユ湡.toString(),
+
+ 'yes']
+
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeclass("layui-btn-disabled");
+ }
+
+ });
+
+ }
+ break;
+ //娣诲姞
+ case 'btn-Add':
+ //椤甸潰灞�-鑷畾涔�
+ layer.open({
+ type: 2,
+ skin: 'layui-layer-rim', //鍔犱笂杈规
+ title: '宸ュ簭璁″垝鍗�',
+ closeBtn: 1,
+ shift: 2,
+ area: ['100%', '100%'],
+ maxmin: true,
+ content: '../../鐢熶骇宸ュ簭绠$悊/宸ュ簭姹囨姤鍗�/Sc_Add_ProcessReportList.html?HInterID=-1&OperationType=1&linterid=0&HSouceBillType=0&linteridSub=-1',
+ end: function () {
+ //鍒锋柊椤甸潰,
+ location.reload();
+ },
+ success: function (layero, index) {
+
+ }
+ });
+ break;
+ case '':
+ layer.msg('');
+ break;
+
+ };
+ });
//杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
var index0 = layer.load(0, { shade: false });
$.ajax({
//url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
- url: GetWEBURL() + '/LEMS/MES_Sc_ProcessReportList_Json',
+ url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessSendWorkMain_Json',
type: "GET",
- data: { "sWhere": sWhere },
+ data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
success: function (data1) {
if (data1.count == 1) {
option.data = data1.data;
@@ -220,9 +298,9 @@
}
var index = layer.load(0, { shade: false });
$.ajax({
- url: GetWEBURL() + '/LEMS/MES_Sc_ProcessReportList_Json',
+ url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessSendWorkMain_Json',
type: "GET",
- data: { "sWhere": sWhere },
+ data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]},
success: function (data1) {
if (data1.count == 1) {
option.data = data1.data;
--
Gitblit v1.9.1