From 1a0409e260b79b030f79a4fad995078a7f1b945c Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期一, 26 五月 2025 07:59:44 +0800 Subject: [PATCH] 13 --- src/main/webapp/static/js/order/order.js | 32 ++++++++++++++++++++++++++------ 1 files changed, 26 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/static/js/order/order.js b/src/main/webapp/static/js/order/order.js index ad09170..11e6d0e 100644 --- a/src/main/webapp/static/js/order/order.js +++ b/src/main/webapp/static/js/order/order.js @@ -79,6 +79,13 @@ insTb.reload({where: data.field, page: {curr: 1}}); }); + // 閲嶇疆 + form.on('submit(reset)', function (data) { + pageCurr = 1; + clearFormVal($('#search-box')); + tableReload(false); + }); + // 娣诲姞 $("#orderAddBtn").click(function () { showEditModel(); @@ -124,10 +131,11 @@ {type: 'numbers'}, {field: 'matnr', title: '鍟嗗搧缂栫爜', width: 160}, {field: 'maktx', title: '鍟嗗搧鍚嶇О', width: 160}, + {field: 'specs', title: '瑙勬牸'}, {field: 'batch', title: '鎵瑰彿'}, - {field: 'anfme', title: '鏁伴噺'}, - {field: 'workQty', title: '浣滀笟鏁伴噺'}, - {field: 'qty', title: '瀹屾垚鏁伴噺', style: 'font-weight: bold'}, + {field: 'anfme', title: '寰呭畬缁撴暟閲�'}, + {field: 'qty', title: '寰呬笂鎶ユ暟閲�', style: 'font-weight: bold'}, + {field: 'workQty', title: '宸蹭笂鎶ユ暟閲�'}, // {field: 'unit', title: '鍗曚綅'}, // { // field: 'createTime$', title: '鍒涘缓鏃堕棿', sort: true, templet: function (d) { @@ -135,8 +143,7 @@ // }, width: 180 // }, // {field: 'inQty', title: '宸插叆搴撻噺'}, - // {field: 'color', title: '棰滆壊'}, - {field: 'specs', title: '瑙勬牸'} + // {field: 'color', title: '棰滆壊'} ]], request: { pageName: 'curr', @@ -204,6 +211,8 @@ orderId: Number(data.field.id), docType: Number(data.field.docType), orderNo: data.field.orderNo, + itemId: Number(data.field.itemId), + itemName: data.field.itemName, orderDetlList: nList }), contentType:'application/json;charset=UTF-8', @@ -501,7 +510,7 @@ var traceCharts = echarts.init(document.getElementById('wrkTraceCharts')); var traceOptions = { title: { - text: '鎬婚噺/浣滀笟/瀹屾垚', x: 'center', y: '38%', + text: '浣滀笟/瀹岀粨/涓婃姤', x: 'center', y: '38%', textStyle: {fontSize: 18, color: '#262626', fontWeight: 'normal'}, subtextStyle: {fontSize: 36, color: '#10B4E8'}, itemGap: 20 @@ -544,3 +553,14 @@ ,range: true }); }); + +function tableReload(child) { + var searchData = {}; + $.each($('#search-box [name]').serializeArray(), function() { + searchData[this.name] = this.value; + }); + insTb.reload({ + where: searchData, + page: {curr: pageCurr} + }); +} -- Gitblit v1.9.1