From d426a65ba84bd4ef3298cb7cda0e9664cc6038e7 Mon Sep 17 00:00:00 2001 From: 18516761980 <4761516tqsxp> Date: 星期四, 13 一月 2022 14:23:30 +0800 Subject: [PATCH] #单据类型区分入库单和出库单 --- src/main/webapp/static/js/projectPlan/projectPlan.js | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/static/js/projectPlan/projectPlan.js b/src/main/webapp/static/js/projectPlan/projectPlan.js index 38f7715..fed6285 100644 --- a/src/main/webapp/static/js/projectPlan/projectPlan.js +++ b/src/main/webapp/static/js/projectPlan/projectPlan.js @@ -1,5 +1,5 @@ var pageCurr; -var firstId; +var items; getItems(); layui.config({ @@ -23,14 +23,14 @@ toolbar: '#toolbar', cellMinWidth: 50, where: { - target: firstId + items: items }, cols: [[ - {type: 'checkbox'} + {type: 'checkbox', hide:true} // ,{field: 'id', align: 'center',title: '鍞竴ID'} - // ,{field: 'itemId', align: 'center',title: '椤圭洰ID'} - ,{field: 'flowName', align: 'center',title: '鑺傜偣鍚嶇О'} + ,{field: 'itemId$', align: 'center',title: '椤圭洰鍚嶇О'} + ,{field: 'flowId$', align: 'center',title: '鑺傜偣鍚嶇О'} ,{field: 'weightNum', align: 'center',title: '鏉冮噸鍊�'} // ,{field: 'flowId', align: 'center',title: '鑺傜偣ID'} @@ -81,6 +81,11 @@ where: searchData, page: {curr: 1} }); + }); + + form.on('select(items)',function (data) { + items = data.value + tableReload(); }); // 鐩戝惉澶村伐鍏锋爮浜嬩欢 @@ -157,6 +162,7 @@ /* 寮圭獥 - 鏂板銆佷慨鏀� */ function showEditModel(mData) { + admin.open({ type: 1, area: '600px', @@ -166,6 +172,7 @@ layDateRender(); form.val('detail', mData); form.on('submit(editSubmit)', function (data) { + data.field.itemId = items var loadIndex = layer.load(2); $.ajax({ @@ -288,7 +295,8 @@ if (res.data != null) { // console.log(res.data[0].key) - firstId = res.data[0].key; + // items = res.data[0].key; + items='0'; var tpl = $("#parentNodeGroup").html(); var template = Handlebars.compile(tpl); var html = template(res); @@ -296,4 +304,5 @@ } }); -} \ No newline at end of file +} + -- Gitblit v1.9.1