From 1358d667d480ae10706a1244d6d582c07defc6bd Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 30 五月 2025 14:37:34 +0800
Subject: [PATCH] 器具状态:复制功能
---
WebTM/views/基础资料/基础资料/Gy_MouldStatusEdit.html | 7 +++++++
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user | 4 ++--
WebTM/views/基础资料/基础资料/Gy_MouldStatus.html | 37 +++++++++++++++++++++++++++++++++++++
3 files changed, 46 insertions(+), 2 deletions(-)
diff --git a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
index 339565e..9783118 100644
--- a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -4081,10 +4081,10 @@
<publishTime>03/18/2025 09:33:56</publishTime>
</File>
<File Include="views/鍩虹璧勬枡/鍩虹璧勬枡/Gy_MouldStatus.html">
- <publishTime>05/30/2025 14:19:13</publishTime>
+ <publishTime>05/30/2025 14:36:31</publishTime>
</File>
<File Include="views/鍩虹璧勬枡/鍩虹璧勬枡/Gy_MouldStatusEdit.html">
- <publishTime>04/11/2023 16:34:43</publishTime>
+ <publishTime>05/30/2025 14:34:22</publishTime>
</File>
<File Include="views/鍩虹璧勬枡/鍩虹璧勬枡/Gy_Operator.html">
<publishTime>09/11/2024 21:05:00</publishTime>
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldStatus.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldStatus.html"
index 3d10b9b..6b2856e 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldStatus.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldStatus.html"
@@ -149,6 +149,7 @@
<div class="layui-btn-container" id="toolbarDemo_ButtonSet">
<button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Add" id="btn-Add"><i class="layui-iconlayuiiconfileb"></i>鏂板</button>
<button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Edit" id="btn-Edit"><i class="layuiiconlayuiiconform"></i>缂栬緫</button>
+ <button type="button" class="layui-btn layui-btn-sm" style="display: none;" lay-event="btn-Copy" id="btn-Copy"><i class="layuiiconlayuiiconform"></i>澶嶅埗</button>
<button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Delete" id="btn-Delete"><i class="layuiiconlayuiicon-delete"></i>鍒犻櫎</button>
<button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_Refresh" id="get_Refresh"><i class="layui-iconlayuiiconrefresh-3"></i>鍒锋柊</button>
<button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_HideColumn" id="set_HideColumn"><i class="layui-icon layuiiconform"></i>鍒楄缃�</button>
@@ -227,8 +228,13 @@
case 'btn-Add':
set_AddNew();
break;
+ //缂栬緫鎸夐挳
case 'btn-Edit':
set_ShowBill();
+ break;
+ //澶嶅埗鎸夐挳
+ case 'btn-Copy':
+ set_CopyBill();
break;
case 'btn-Delete':
set_DeleteBill();
@@ -629,6 +635,37 @@
}
//#endregion
+ //#region 澶嶅埗鍗曟嵁
+ function set_CopyBill() {
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+ if (checkStatus.data.length === 1) {
+ var hID = data[0].HItemID.toString();
+ //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '澶嶅埗鍣ㄥ叿鐘舵��'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: '../鍩虹璧勬枡/Gy_MouldStatusEdit.html?hID=' + hID + '&HOperationType=2'
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ , end: function () {
+ //鍒锋柊椤甸潰,
+ get_FastQuery(table, option);
+ }
+ })
+
+ } else {
+ layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+ }
+ }
+ //#endregion
+
//#region 缂栬緫鍗曟嵁
function set_ShowBill() {
var checkStatus = table.checkStatus('mainTable')
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldStatusEdit.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldStatusEdit.html"
index b245004..2ed24e9 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldStatusEdit.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldStatusEdit.html"
@@ -128,11 +128,18 @@
var params = getUrlVars();
//var OperationType = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鏁版嵁绫诲瀷 1娣诲姞 淇濆瓨 2澶嶅埗 3 缂栬緫
var linterid = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鍗曟嵁鍐呯爜
+ var HOperationType = params[params[1]];
//鍒ゆ柇鏄惁鏂板
if (linterid == null || linterid == 0) {
}
+ else if (HOperationType == 2) {
+ //绂佺敤缁勭粐閫夐」
+ RoadBillMain(linterid);
+
+ $("#HItemID").val("0");
+ }
else {//濡傛灉淇敼鍒欒蛋涓嬮潰 new
//绂佺敤缁勭粐閫夐」
$("#HUSEORGID").attr("disabled", true);
--
Gitblit v1.9.1