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/item/item.js | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/static/js/item/item.js b/src/main/webapp/static/js/item/item.js index b995313..15ee0ef 100644 --- a/src/main/webapp/static/js/item/item.js +++ b/src/main/webapp/static/js/item/item.js @@ -11,6 +11,7 @@ // 鏁版嵁娓叉煋 tableIns = table.render({ + elem: '#item', headers: {token: localStorage.getItem('token')}, url: baseUrl+'/item/list/auth', @@ -28,12 +29,19 @@ ,{field: 'inUuid', align: 'center',title: '鍐呴儴缂栧彿', hide: true} // ,{field: 'cstmrUuid', align: 'center',title: '瀹㈡埛缂栧彿'} ,{field: 'cstmrUuid$', align: 'center',title: '瀹㈡埛鍚嶇О'} + ,{field: 'projectStatus$', align: 'center', title: '椤圭洰杩涘害'} + // ,{field: 'member', align: 'center',title: '椤圭洰鎴愬憳'} // ,{field: 'leader', align: 'center',title: '椤圭洰缁忕悊'} - ,{field: 'startTime$', align: 'center',title: '璁″垝寮�濮嬫椂闂�'} - ,{field: 'endTime$', align: 'center',title: '璁″垝缁撴潫鏃堕棿'} - ,{field: 'realStartTime', align: 'center', title: '瀹為檯寮�濮嬫椂闂�'} - ,{field: 'realEndTime', align: 'center', title: '瀹為檯缁撴潫鏃堕棿'} + ,{field: 'startTime$', align: 'center',title: '璁″垝寮�濮嬫椂闂�', + templet : "<div>{{layui.util.toDateString(d.startTime$, 'yyyy-MM-dd')}}</div>" + } + ,{field: 'endTime$', align: 'center',title: '璁″垝缁撴潫鏃堕棿', + templet : "<div>{{layui.util.toDateString(d.endTime$, 'yyyy-MM-dd')}}</div>"} + ,{field: 'realStartTime$', align: 'center', title: '瀹為檯寮�濮嬫椂闂�', + templet : "<div>{{layui.util.toDateString(d.realStartTime$, 'yyyy-MM-dd')}}</div>"} + ,{field: 'realEndTime$', align: 'center', title: '瀹為檯缁撴潫鏃堕棿', + templet : "<div>{{layui.util.toDateString(d.realEndTime$, 'yyyy-MM-dd')}}</div>"} ,{field: 'type$', align: 'center', title: '椤圭洰绫诲瀷'} ,{field: 'originArea', align: 'center', title: '鐢熶骇鍦�'} ,{field: 'realMonth', align: 'center', title: '鏃堕棿璺ㄥ害(鏈�)'} @@ -64,6 +72,7 @@ statusCode: 200 }, done: function(res, curr, count) { + if (res.code === 403) { top.location.href = baseUrl+"/"; } @@ -163,11 +172,12 @@ admin.open({ type: 1, area: '600px', - title: (mData ? '淇敼' : '娣诲姞') + '璁㈠崟鐘舵��', + title: (mData ? '淇敼' : '娣诲姞') + '椤圭洰淇℃伅', content: $('#editDialog').html(), success: function (layero, dIndex) { layDateRender(); form.val('detail', mData); + form.on('submit(editSubmit)', function (data) { var loadIndex = layer.load(2); @@ -199,7 +209,7 @@ /* 鍒犻櫎 */ function del(ids) { - layer.confirm('纭畾瑕佸垹闄ら�変腑鏁版嵁鍚楋紵', { + layer.confirm('纭畾瑕佺鐢ㄩ�変腑鏁版嵁鍚楋紵', { skin: 'layui-layer-admin', shade: .1 }, function (i) { @@ -227,6 +237,7 @@ // 鎼滅储 form.on('submit(search)', function (data) { + pageCurr = 1; tableReload(false); }); @@ -276,6 +287,7 @@ function tableReload(child) { var searchData = {}; + $.each($('#search-box [name]').serializeArray(), function() { searchData[this.name] = this.value; }); -- Gitblit v1.9.1