From c49d38e3abd223c5f60d3d5fef53144a2d0c6e25 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 11 六月 2020 11:02:49 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/pakStore/pakStore.js | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/static/js/pakStore/pakStore.js b/src/main/webapp/static/js/pakStore/pakStore.js index c652138..a4cc266 100644 --- a/src/main/webapp/static/js/pakStore/pakStore.js +++ b/src/main/webapp/static/js/pakStore/pakStore.js @@ -17,13 +17,13 @@ cellMinWidth: 50, toolbar: '#toolbar', cols: [[ - {fixed: 'left', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80}, - {fixed: 'left', field: 'count', title: '鏁伴噺(蹇呭~)', align: 'center', edit:'text', width: 120, style:'color: blue;'}, + {fixed: 'left', field: 'count', title: '鏁伴噺(蹇呭~)', align: 'center', edit:'text', width: 120, style:'color: blue;font-weight: bold'}, {field: 'matNo', align: 'center', title: '鐗╂枡缂栫爜'}, {field: 'barcode', align: 'center', title: '鏉$爜'}, {field: 'matName', align: 'center', title: '鐗╂枡鍚嶇О'}, {field: 'str1', align: 'center', title: '鐗╂枡鍗曚綅'}, - {field: 'str2', align: 'center', title: '鐗╂枡瑙勬牸'} + {field: 'str2', align: 'center', title: '鐗╂枡瑙勬牸'}, + {fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80} ]], done: function (res, curr, count) { $('td[data-field=count] div').html(initCountVal); @@ -56,6 +56,10 @@ } // 鍒ゆ柇鐗╂枡鏁伴噺鏄惁瀛樺湪寮傚父 for (var i=0;i<matCodeData.length;i++){ + if (isNaN(matCodeData[i].count)) { + layer.msg("璇疯緭鍏ユ暟瀛�"); + return; + } if (matCodeData[i].count === 0){ layer.msg("鏁伴噺涓嶈兘涓洪浂"); return; @@ -108,12 +112,16 @@ } } - // 琛ㄥ崟 + // 琛ㄥ崟 --- 鍚姩鍏ュ簱 form.on('submit(combDo)', function (data) { $.ajax({ - url: baseUrl+"/put/site/start", + url: baseUrl+"/full/store/start", headers: {'token': localStorage.getItem('token')}, - data: null, + data: JSON.stringify({ + devpNo: $('#putSiteSelect').val(), + list: matCodeData + }), + contentType:'application/json;charset=UTF-8', method: 'POST', async: false, success: function (res) { -- Gitblit v1.9.1