From 4ad1f324ab1fd2b51504afc00b43b4ee40f029c2 Mon Sep 17 00:00:00 2001 From: lsh <lsh@163.com> Date: 星期四, 20 二月 2025 09:40:03 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/order/order.js | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/main/webapp/static/js/order/order.js b/src/main/webapp/static/js/order/order.js index 5a265f1..532fc96 100644 --- a/src/main/webapp/static/js/order/order.js +++ b/src/main/webapp/static/js/order/order.js @@ -4,7 +4,7 @@ base: baseUrl + "/static/layui/lay/modules/" }).extend({ notice: 'notice/notice', -}).use(['layer', 'form', 'table','upload', 'util', 'admin', 'xmSelect', 'laydate', 'tableMerge', 'notice'], function () { +}).use(['layer', 'form', 'table','upload','element', 'util', 'admin', 'xmSelect', 'laydate', 'tableMerge', 'notice'], function () { var $ = layui.jquery; var layer = layui.layer; var form = layui.form; @@ -17,6 +17,7 @@ var laytpl = layui.laytpl; var tableMerge = layui.tableMerge; var notice = layui.notice; + var element = layui.element; // 娓叉煋鎼滅储妯℃澘 $.ajax({ @@ -90,7 +91,7 @@ var uploadListIns = upload.render({ elem: '#data-btn-file2' ,elemList: $('#data-btn-file3') //鍒楄〃鍏冪礌瀵硅薄 - ,url: '/order/insert/labelUp/file/auth' + ,url: baseUrl+'/order/insert/labelUp/file/auth' ,accept: 'file' ,multiple: true ,number: 10 @@ -98,9 +99,6 @@ ,bindAction: '#testListAction' ,choose: function(obj){ // 璧嬪�� - console.log(obj) - console.log(obj.data) - console.log($('.layui-layer-title').text()) this.data.orderId=$('.layui-layer-title').text() var that = this; var files = this.files = obj.pushFile(); //灏嗘瘡娆¢�夋嫨鐨勬枃浠惰拷鍔犲埌鏂囦欢闃熷垪 @@ -112,7 +110,7 @@ ,'<td><div class="layui-progress" lay-filter="progress-demo-'+ index +'"><div class="layui-progress-bar" lay-percent=""></div></div></td>' ,'<td>' ,'<button class="layui-btn layui-btn-xs demo-reload layui-hide">閲嶄紶</button>' - ,'<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete">鍒犻櫎</button>' + // ,'<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete">鍒犻櫎</button>' ,'</td>' ,'</tr>'].join('')); @@ -177,13 +175,14 @@ // 鎵撳紑寮圭獥 // 鏋勫缓甯﹀弬鏁扮殑鍐呭 layer.open({ + area: '1020px', type: 1, title: '涓婁紶鏂囦欢-'+data.id, content: $('#myModal') }); // 鑾峰彇璺緞涓嬬殑鏂囦欢鍒楄〃锛屼娇鐢� jQuery 鐨� ajax 鏂规硶 $.ajax({ - url: '/order/view/labelUp/file/auth', + url: baseUrl+'/order/view/labelUp/file/auth', data:{ orderId:data.id }, @@ -201,7 +200,7 @@ + '<td><div class="layui-progress" lay-filter="progress-demo-' + index + '"><div class="layui-progress-bar" lay-percent=""></div></div></td>' + '<td>' + '<button class="layui-btn layui-btn-xs demo-reload layui-hide">閲嶄紶</button>' - + '<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete">鍒犻櫎</button>' + // + '<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete">鍒犻櫎</button>' + '</td>'; // 灏唗r鍏冪礌娣诲姞鍒扮洰鏍噒able涓� @@ -246,10 +245,10 @@ cellMinWidth: 100, cols: [[ {type: 'numbers'}, - {field: 'matnr', title: '鍟嗗搧缂栫爜', width: 160}, + {field: 'matnr', title: '瑙勬牸', width: 160}, {field: 'maktx', title: '鍟嗗搧鍚嶇О', width: 160}, {field: 'batch', title: '绠卞彿'}, - {field: 'anfme', title: '鏈ㄧ涓摐绠旀暟閲�'}, + {field: 'anfme', title: '鏁伴噺'}, // {field: 'workQty', title: '浣滀笟鏁伴噺'}, // {field: 'unit', title: '鍗曚綅'}, @@ -260,7 +259,7 @@ // }, // {field: 'inQty', title: '宸插叆搴撻噺'}, // {field: 'color', title: '棰滆壊'}, - {field: 'specs', title: '瑙勬牸'}, + {field: 'specs', title: '鎺ュご'}, {field: 'qty$', title: '鐘舵��', style: 'font-weight: bold'}, {field: 'source$', title: '鏄惁纭', style: 'font-weight: bold'} ]], @@ -360,10 +359,10 @@ cellMinWidth: 100, cols: [[ {type: 'numbers', title: '#'}, - {field: 'matnr', title: '鍟嗗搧缂栫爜', width: 160}, + {field: 'matnr', title: '瑙勬牸', width: 160}, {field: 'maktx', title: '鍟嗗搧鍚嶇О', width: 200}, {field: 'batch', title: '绠卞彿', edit: true}, - {field: 'specs', title: '瑙勬牸'}, + {field: 'specs', title: '鎺ュご'}, {field: 'anfme', title: '鏁伴噺(淇敼)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110}, {field: 'workQty', title: '浣滀笟鏁伴噺', minWidth: 100, width: 100}, // {field: 'unit', title: '鍗曚綅', width: 80}, @@ -710,12 +709,13 @@ {field: 'title', title: '鍟嗗搧', align: 'center', width: 350}, // {field: 'title', title: '鍟嗗搧', merge: true, align: 'center', width: 350}, {field: 'batch', title: '绠卞彿', align: 'center'}, - {field: 'model', title: '鎵规', align: 'center'}, - {field: 'specs', title: '瑙勬牸', align: 'center'}, - {field: 'brand', title: '鏈ㄧ绫诲瀷', align: 'center'}, + {field: 'model', title: '鍗峰彿', align: 'center', hide: false}, + {field: 'specs', title: '鎺ュご', align: 'center'}, + // {field: 'brand', title: '鏈ㄧ绫诲瀷', align: 'center'}, + {field: 'brand$', title: '鏈ㄧ绫诲瀷', align: 'center'}, {field: 'zpallet', title: '鎵樼洏鐮�', align: 'center'}, - {field: 'anfme', title: '鏈ㄧ涓摐绠旀暟閲�', align: 'center', width: 90, style: 'font-weight: bold'}, - {field: 'count', title: '鏈ㄧ涓摐绠旀暟閲�', align: 'center', width: 90, style: 'font-weight: bold'}, + {field: 'anfme', title: '鏁伴噺', align: 'center', width: 90, style: 'font-weight: bold'}, + {field: 'count', title: '鏁伴噺', align: 'center', width: 90, style: 'font-weight: bold'}, {field: 'locNo', title: '璐т綅', align: 'center', width: 100, templet: '#locNoTpl'}, {field: 'tkType$', title: 'TK鏍囪', align: 'center', width: 100}, // {field: 'staNos', align: 'center', title: '鍑哄簱绔�', merge: ['locNo'], templet: '#tbBasicTbStaNos'}, -- Gitblit v1.9.1