Commit ddacd9b7 by yyq1988

对接物资盘亏

parent cba7bb77
...@@ -69,6 +69,26 @@ ...@@ -69,6 +69,26 @@
format: "YYYY-MM-DD HH:mm:ss" format: "YYYY-MM-DD HH:mm:ss"
}); });
}); });
function save() {
var isValidate = jp.validateForm('#inputForm');//校验表单
if(!isValidate){
return false;
}else{
jp.loading();
jp.post($("#inputForm").attr('action'),$('#inputForm').serialize(),function(data){
if(data.success){
jp.getParent().refresh();
var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
parent.layer.close(dialogIndex);
jp.success(data.msg)
}else{
jp.error(data.msg);
}
})
}
}
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -279,12 +279,10 @@ $(document).ready(function() { ...@@ -279,12 +279,10 @@ $(document).ready(function() {
var data1 = profitWarehousing.profitWarehousingInfoList; var data1 = profitWarehousing.profitWarehousingInfoList;
for (var i=0; i<data1.length; i++){ for (var i=0; i<data1.length; i++){
data1[i].dict = {}; data1[i].dict = {};
data1[i].qrCodeStr = data1[1].qrCode && JSON.stringify(data1[1].qrCode); data1[i].qrCodeStr = data1[i].qrCode && JSON.stringify(data1[i].qrCode);
addRow('#profitWarehousingChild-'+row.id+'-1-List', profitWarehousingChild1RowIdx, profitWarehousingChild1Tpl, data1[i]); addRow('#profitWarehousingChild-'+row.id+'-1-List', profitWarehousingChild1RowIdx, profitWarehousingChild1Tpl, data1[i]);
profitWarehousingChild1RowIdx = profitWarehousingChild1RowIdx + 1; profitWarehousingChild1RowIdx = profitWarehousingChild1RowIdx + 1;
} }
}) })
return html; return html;
...@@ -313,8 +311,12 @@ $(document).ready(function() { ...@@ -313,8 +311,12 @@ $(document).ready(function() {
jp.close(); jp.close();
}else{ }else{
jp.get("${ctx}/warehouse/profitwarehousing/profitWarehousing/printQr?profitWarehousingInfoId="+id, function (res) { jp.get("${ctx}/warehouse/profitwarehousing/profitWarehousing/printQr?profitWarehousingInfoId="+id, function (res) {
var profitWarehousingInfo = res.body.profitWarehousingInfo; if(res.success){
preview_LODOP(profitWarehousingInfo.qrCode); var profitWarehousingInfo = res.body.profitWarehousingInfo;
preview_LODOP(profitWarehousingInfo.qrCode);
}else {
jp.warning(res.msg);
}
jp.close(); jp.close();
}) })
} }
...@@ -322,10 +324,7 @@ $(document).ready(function() { ...@@ -322,10 +324,7 @@ $(document).ready(function() {
jp.close(); jp.close();
} }
}catch (e){ }catch (e){
jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (res) { console.error('异常!')
var list = res.body.goodsInfo.qrCodeList;
jp.close();
})
} }
} }
...@@ -340,7 +339,13 @@ $(document).ready(function() { ...@@ -340,7 +339,13 @@ $(document).ready(function() {
jp.error('二维码不存在!') jp.error('二维码不存在!')
} }
} }
function cleanQr(id) {
jp.confirm('确认清除二维码吗?', function (){
jp.get("${ctx}/warehouse/profitwarehousing/profitWarehousing/cleanQr?profitWarehousingInfoId="+id, function (res) {
res.success && jp.success('清除二维码成功!');
})
})
}
</script> </script>
<script type="text/template" id="profitWarehousingChildrenTpl">//<!-- <script type="text/template" id="profitWarehousingChildrenTpl">//<!--
<div class="tabs-container"> <div class="tabs-container">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment