From 292e2a1444cf753321cd629c4d296842a167e426 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期六, 06 五月 2023 15:05:37 +0800
Subject: [PATCH] 界面上快捷方式工艺路线列表模块改成工艺路线查询模块。 物料列表增加字段显示这个物料有没有工艺路线。 工艺路线新增的时候选择物料的弹框增加物料代码对的过滤条件。 工艺路线新增点击上一行下一行,点了之后选中的工序就不选中了。上下移动的时候,流水号不变 物料列表能不能根据物料流水号从大到小排序。 物料新增模块的备注字段名改成白坯要求,流转卡新增模块的备注2改成白坯要求 物料分类批量刷新。物料代码开头 WB代表纬编 QF代表经编 YM代表羊毛 生产订单新增:生产车间隐藏 物料新增主计量单位默认是米 工艺路线复制之后,选择物料,工艺路线名称不会自己改变。(改成物料代码) "生产订单列表排序 日期 单据号 产品物料代码 客户 业务员 门幅 规格 生产数量 计量单位 是否下推生成流转卡 制单人 制单日期 " 生产订单列表。字段框能不能自适应,自己根据数据内容调节大小 日期 单据号 产品物料 代码 客户 业务员 门幅 克重 规格 生产数量 计量单位 制单人 制单日期
---
WebTM/views/PublicPage/UserInformation.html | 119 ++++++++++++++++++++++++++++++++++-------------------------
1 files changed, 68 insertions(+), 51 deletions(-)
diff --git a/WebTM/views/PublicPage/UserInformation.html b/WebTM/views/PublicPage/UserInformation.html
index afdf42c..21e0e02 100644
--- a/WebTM/views/PublicPage/UserInformation.html
+++ b/WebTM/views/PublicPage/UserInformation.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>閫夋嫨鐢ㄦ埛璧勬枡</title>
+ <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">
@@ -30,10 +30,10 @@
<div class="layui-colla-item">
<div class="layui-form-item" style="border-top: solid 1px #F6F6F6;">
<div class="layui-row" style="padding:10px 0">
- <div class="layui-col-xs3 layui-inline" style="width: 23%;">
+ <div class="layui-col-xs3 layui-inline" style="width: 23%; display:none;">
<div id="treeUser" lay-filter="treeUser" class="demo-tree demo-tree-box" style="height: 580px; overflow: scroll;"></div>
</div>
- <div class="layui-col-xs9 layui-inline" style="width: 74%;">
+ <div class="layui-col-xs12 layui-inline">
<div class="layui-row">
<div class="layui-inline">
<label class="layui-form-label">浠g爜</label>
@@ -67,7 +67,16 @@
<script src="../../layuiadmin/layui/zgqlayui.js"></script>
<script src="../../layuiadmin/zgqCustom/zgqCustom.js"></script>
+ <script src="../../layuiadmin/PubCustom.js"></script>
<script>
+ //鑾峰彇椤甸潰璺宠浆鍙傛暟
+ var params = get_UrlVars();
+ if (typeof (params[params[0]]) == "undefined") {
+ var TreeFlag = true;//鎿嶄綔绫诲瀷
+ } else {
+ var TreeFlag = params[params[0]];//鎿嶄綔绫诲瀷
+ }
+
var treeCkData = { id: 0 };
var TagId = "";
var TagParentId = "";
@@ -89,52 +98,60 @@
, tree = layui.tree
var sWhere = " where HStopFlag=0 and HEndFlag<>'1' and HUSEORGID = " + sessionStorage["OrganizationID"] + " "; //鏍戝瀷
var sWhere1 = " where HStopFlag=0 and HEndFlag=1 and HUSEORGID = " + sessionStorage["OrganizationID"] + " "; //鍒楄〃
-
- tree.render({
- elem: '#treeUser',
- data: getData(sWhere),
- showCheckbox: false, //鏄惁鏄剧ず澶嶉�夋
- id: 'demoId',
- isJump: false, //鏄惁鍏佽鐐瑰嚮鑺傜偣鏃跺脊鍑烘柊绐楀彛璺宠浆
- showLine: true,//鏄惁寮�鍚繛鎺ョ嚎
- onlyIconControl: true, //鐐瑰嚮鍚庝笉鏀剁缉
- click: function (obj) {
- //鐐瑰嚮楂樺厜
- if (obj.data.id !== treeCkData.id) {
- $('div[data-id="' + obj.data.id + '"] span').eq(1).last().addClass("custom-tree-item-clicked");
- $('div[data-id="' + treeCkData.id + '"] span').eq(1).last().removeClass('custom-tree-item-clicked');
- treeCkData = obj.data;
- TagId = obj.data.id;
- TagParentId = obj.data.ParentID;
- }
- else {
- $('div[data-id="' + treeCkData.id + '"] span').eq(1).last().removeClass('custom-tree-item-clicked');
- treeCkData = { id: 0 };
- TagId = "";
- TagParentId = "";
- }
+ if (TreeFlag == "false")
+ {
+ //$(".layui-col-xs3").css("display", "none"); //闅愯棌鏍戝瀷
+ //$(".layui-col-xs9").css("width", "100%"); //璁剧疆瀹藉害
+ }
+ else
+ {
+ //tree.render({
+ // elem: '#treeUser',
+ // data: getData(sWhere),
+ // showCheckbox: false, //鏄惁鏄剧ず澶嶉�夋
+ // id: 'demoId',
+ // isJump: false, //鏄惁鍏佽鐐瑰嚮鑺傜偣鏃跺脊鍑烘柊绐楀彛璺宠浆
+ // showLine: true,//鏄惁寮�鍚繛鎺ョ嚎
+ // onlyIconControl: true, //鐐瑰嚮鍚庝笉鏀剁缉
+ // click: function (obj) {
+ // //鐐瑰嚮楂樺厜
+ // if (obj.data.id !== treeCkData.id) {
+ // $('div[data-id="' + obj.data.id + '"] span').eq(1).last().addClass("custom-tree-item-clicked");
+ // $('div[data-id="' + treeCkData.id + '"] span').eq(1).last().removeClass('custom-tree-item-clicked');
+ // treeCkData = obj.data;
+ // TagId = obj.data.id;
+ // TagParentId = obj.data.ParentID;
+ // }
+ // else {
+ // $('div[data-id="' + treeCkData.id + '"] span').eq(1).last().removeClass('custom-tree-item-clicked');
+ // treeCkData = { id: 0 };
+ // TagId = "";
+ // TagParentId = "";
+ // }
- $.ajax({
- url: GetWEBURL() + '/Gy_MaintenanceMode/UserCX',
- type: "GET",
- data: { "HInterID": obj.data.id },
- success: function (data1) {
- if (data1.count == 1) {
- option.data = data1.data;
- table.render(option);
- layer.close(index);
- } else {
- layer.close(index);
- layer.alert(data1.code + data1.Message, { icon: 5 });
- }
- }, error: function () {
- layer.close(index);
- layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
- }
- });
- }
- });
+ // $.ajax({
+ // url: GetWEBURL() + '/Gy_MaintenanceMode/UserCX',
+ // type: "GET",
+ // data: { "HInterID": obj.data.id },
+ // success: function (data1) {
+ // if (data1.count == 1) {
+ // option.data = data1.data;
+ // table.render(option);
+ // layer.close(index);
+ // } else {
+ // layer.close(index);
+ // layer.alert(data1.code + data1.Message, { icon: 5 });
+ // }
+ // }, error: function () {
+ // layer.close(index);
+ // layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+ // }
+ // });
+ // }
+ //});
+ }
+
var option = {
@@ -176,7 +193,7 @@
//鏌ヨ鎸夐挳
form.on('submit(btnSearch)', function (data) {
-
+
$.ajax({
url: GetWEBURL() + '/PublicPageMethod/UserList',
type: "GET",
@@ -185,7 +202,7 @@
if (data1.count == 1) {
option.data = data1.data;
table.render(option);
- layer.alert("鏌ヨ鎴愬姛", { icon: 1 });
+ /*layer.alert("鏌ヨ鎴愬姛", { icon: 1 });*/
} else {
layer.alert(data1.code + data1.Message, { icon: 5 });
}
@@ -237,10 +254,10 @@
return treeData;
}
- function SeachFilter(sWhere1)
- {
+ function SeachFilter(sWhere1) {
var HNumber = $("#HNumber").val();
var HName = $("#HName").val();
+ sWhere1 = " where 1=1 ";
if (HNumber) {
sWhere1 += " and HNumber like '%" + HNumber + "%'";
}
--
Gitblit v1.9.1