Commit ddacd9b7 by yyq1988

对接物资盘亏

parent cba7bb77
......@@ -69,6 +69,26 @@
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>
</body>
</html>
\ No newline at end of file
......@@ -279,12 +279,10 @@ $(document).ready(function() {
var data1 = profitWarehousing.profitWarehousingInfoList;
for (var i=0; i<data1.length; i++){
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]);
profitWarehousingChild1RowIdx = profitWarehousingChild1RowIdx + 1;
}
})
return html;
......@@ -313,8 +311,12 @@ $(document).ready(function() {
jp.close();
}else{
jp.get("${ctx}/warehouse/profitwarehousing/profitWarehousing/printQr?profitWarehousingInfoId="+id, function (res) {
if(res.success){
var profitWarehousingInfo = res.body.profitWarehousingInfo;
preview_LODOP(profitWarehousingInfo.qrCode);
}else {
jp.warning(res.msg);
}
jp.close();
})
}
......@@ -322,10 +324,7 @@ $(document).ready(function() {
jp.close();
}
}catch (e){
jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (res) {
var list = res.body.goodsInfo.qrCodeList;
jp.close();
})
console.error('异常!')
}
}
......@@ -340,7 +339,13 @@ $(document).ready(function() {
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 type="text/template" id="profitWarehousingChildrenTpl">//<!--
<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