From 111d09d2f3fadf841e3df1c72dfd423ea1c91649 Mon Sep 17 00:00:00 2001 From: 18516761980 <4761516tqsxp> Date: 星期五, 14 一月 2022 13:59:30 +0800 Subject: [PATCH] #单据类型区分入库单和出库单 --- src/main/webapp/static/js/projectPlan/projectPlan.js | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/static/js/projectPlan/projectPlan.js b/src/main/webapp/static/js/projectPlan/projectPlan.js index ab05220..bc873fd 100644 --- a/src/main/webapp/static/js/projectPlan/projectPlan.js +++ b/src/main/webapp/static/js/projectPlan/projectPlan.js @@ -27,10 +27,10 @@ }, 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'} @@ -172,8 +172,9 @@ layDateRender(); form.val('detail', mData); form.on('submit(editSubmit)', function (data) { - data.field.itemId = items - + if(mData === '娣诲姞'){ + data.field.push(items); + } var loadIndex = layer.load(2); $.ajax({ url: baseUrl+"/projectPlan/"+(mData?'update':'add')+"/auth", @@ -295,7 +296,8 @@ if (res.data != null) { // console.log(res.data[0].key) - items = res.data[0].key; + // items = res.data[0].key; + items='0'; var tpl = $("#parentNodeGroup").html(); var template = Handlebars.compile(tpl); var html = template(res); -- Gitblit v1.9.1