From c923a3aca3cfb4da23eca4666ad7367b8aa3f217 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 25 三月 2021 09:22:06 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/check/check.js | 48 +++++++++++++++++++++++++++--------------------- 1 files changed, 27 insertions(+), 21 deletions(-) diff --git a/src/main/webapp/static/js/check/check.js b/src/main/webapp/static/js/check/check.js index 74c4273..7006cf9 100644 --- a/src/main/webapp/static/js/check/check.js +++ b/src/main/webapp/static/js/check/check.js @@ -31,16 +31,17 @@ ,{field: 'docId', align: 'center',title: '鍗曟嵁绫诲瀷', hide: true} ,{field: 'docNum', align: 'center',title: '鍗曟嵁缂栧彿', hide: true} ,{field: 'oriQty', align: 'center',title: '璐﹂潰鏁伴噺 (鍘�)', style: 'font-weight: bolder'} - ,{field: 'cekQty', align: 'center',title: '瀹炵洏鏁伴噺 (鐜�)', style: 'font-weight: bolder; color: blue'} + ,{field: 'cekQty', align: 'center',title: '瀹炵洏鏁伴噺 (鐜�)', style: 'font-weight: bolder'} + ,{field: 'diffQty', align: 'center',title: '宸��', style: 'font-weight: bolder; color: blue'} ,{field: 'settle$', align: 'center',title: '鐩堜簭', templet: '#checkTpl', width: 100} - ,{field: 'status$', align: 'center',title: '鐘舵��', hide: true} ,{field: 'createTime$', align: 'center',title: '鐩樼偣鏃堕棿'} ,{field: 'createBy$', align: 'center',title: '鐩樼偣浜哄憳'} + ,{field: 'status$', align: 'center',title: '鐘舵��', templet: '#statusTpl', width: 110} ,{field: 'updateBy$', align: 'center',title: '淇敼浜哄憳', hide: true} ,{field: 'updateTime$', align: 'center',title: '淇敼鏃堕棿', hide: true} ,{field: 'memo', align: 'center',title: '澶囨敞', hide: true} - ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:100} + ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:120} ]], request: { pageName: 'curr', @@ -205,26 +206,31 @@ } }); break; - // 缂栬緫 - case 'edit': - layer.open({ - type: 2, - title: '淇敼', - maxmin: true, - area: [top.detailWidth, top.detailHeight], - content: 'check_detail.html', - success: function(layero, index){ - layer.getChildFrame('#data-detail-submit-save', index).hide(); - setFormVal(layer.getChildFrame('#detail', index), data, false); - top.convertDisabled(layer.getChildFrame('#data-detail :input', index), false); - top.convertDisabled(layer.getChildFrame('#id', index), true); - layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); - layero.find('iframe')[0].contentWindow.layui.form.render('select'); - layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); - } + // 瀹℃牳 + case 'auditing': + layer.confirm(data.nodeUuid +'璐т綅 鐩樼偣瀹℃牳 '+ data.matnr + ' ?', function(){ + var index = layer.load(1, {shade: [0.5,'#000']}); + $.ajax({ + url: baseUrl+"/work/stock/check/auditing", + headers: {'token': localStorage.getItem('token')}, + data: { + checkId: data.id + }, + dataType:'json', + method: 'POST', + success: function (res) { + if (res.code === 200) { + layer.msg(res.msg, {icon: 1}) + } else if (res.code === 403) { + top.location.href = baseUrl+"/"; + } else { + layer.msg(res.msg, {icon: 2}) + } + layer.close(index); + } + }); }); break; - } }); -- Gitblit v1.9.1