From 15113636be02f3f398e62ce1e8c7b2e9c1da7b43 Mon Sep 17 00:00:00 2001 From: zzr99 <1940172413@qq.com> Date: 星期五, 12 十一月 2021 18:02:19 +0800 Subject: [PATCH] 新增器具档案初始化按钮新增采购入库记录 --- WebTM/views/模治具管理/模治具仓库管理/Sc_MouldProdMoveBill.html | 6 ++---- WebTM/views/模治具管理/模治具管理/Gy_MouldFileList.html | 41 +++++++++++++++++++++++++++++++++++++---- WebTM/views/模治具管理/模治具仓库管理/Sc_MouldMoveStockStepOutBill.html | 5 +++-- 3 files changed, 42 insertions(+), 10 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_MouldMoveStockStepOutBill.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_MouldMoveStockStepOutBill.html" index 318cc1c..508e915 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_MouldMoveStockStepOutBill.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_MouldMoveStockStepOutBill.html" @@ -277,7 +277,8 @@ elem: '#mainTable1' , height: 500 , page: true //寮�鍚垎椤� - , cols: [{ type: 'checkbox', fixed: 'left' } + , cols: [[ + { type: 'checkbox', fixed: 'left' } , { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe", width: 100 } , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', edit: 'text', event: 'HMaterCode', width: 100 } , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', edit: 'text', width: 100 } @@ -288,7 +289,7 @@ , { field: 'hscwhid', title: 'hscwhid', edit: 'text', width: 100, hide: true } , { field: '璋冨嚭浠撳簱浠g爜', title: '璋冨嚭浠撳簱浠g爜', edit: 'text', event: 'HWHCode', width: 120 } , { field: '璋冨嚭浠撳簱', title: '璋冨嚭浠撳簱', edit: 'text', width: 120 } - , { field: '琛ㄤ綋澶囨敞', title: '澶囨敞', edit: 'text', width: 100 }] + , { field: '琛ㄤ綋澶囨敞', title: '澶囨敞', edit: 'text', width: 100 }]] , limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲� }; //鍒ゆ柇鏄惁鏂板 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_MouldProdMoveBill.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_MouldProdMoveBill.html" index 4ef6655..e394e96 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_MouldProdMoveBill.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_MouldProdMoveBill.html" @@ -277,7 +277,7 @@ , height: 500 //,url: '/demo/table/user/' //鏁版嵁鎺ュ彛 , page: true //寮�鍚垎椤� - , cols: [ + , cols: [[ { type: 'checkbox', fixed: 'left' } , { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe", width: 100 } , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', edit: 'text', event: 'HMaterCode', width: 100 } @@ -290,7 +290,7 @@ , { field: '璋冨嚭浠撳簱浠g爜', title: '璋冨嚭浠撳簱浠g爜', edit: 'text', event: 'HWHCode', width: 120 } , { field: '璋冨嚭浠撳簱', title: '璋冨嚭浠撳簱', edit: 'text', width: 120 } , { field: '琛ㄤ綋澶囨敞', title: '澶囨敞', edit: 'text', width: 100 } - ] + ]] , limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲� }; //鍒ゆ柇鏄惁鏂板 @@ -307,8 +307,6 @@ type: "GET", data: { "sqlWhere": "and hmainid=" + hID }, success: function (result) { - //console.log(result); - //console.log('gouba' + result); if (result.count == 1) { option.data = result.list[0]; table.render(option); 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 79964b7..0ab8a89 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" @@ -56,10 +56,7 @@ <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> </div> </script> </form> @@ -119,6 +116,9 @@ break; //閫�鍑烘寜閽� case 'get_Exit': Pub_Close(2); + break; + //鍒濆鍖栨寜閽� + case 'get_Initialize': get_Initialize(); break; }; }); @@ -433,6 +433,39 @@ $("#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"] }, + 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('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒'); + } + } //浠ヤ笂鏄痩ayui妯″潡 }); -- Gitblit v1.9.1