Authored by mali

库存管理

... ... @@ -7,7 +7,7 @@
<script src="/ufoPlatform/js/ajaxfileupload.js"></script>
</head>
<body class="easyui-layout" fit="true">
<div region="north" style="height: 230px">
<div region="north" style="height: 138px">
<script>
document.write(addHead('库存详情', ''));
</script>
... ... @@ -143,8 +143,11 @@
width: 120,
align: "center",
formatter: function (value, rowData) {
var str = "<a role='edit' dataId='" + rowData.skup + "' style='margin-left:10px'>取消售卖</a>";
return str;
if (rowData.status == 1) {
return "<a role='edit' dataId='" + rowData.skup + "' style='margin-left:10px'>取消售卖</a>";
} else {
return '';
}
}
}]],
cache: false,
... ...
... ... @@ -7,7 +7,7 @@
<script src="/ufoPlatform/js/ajaxfileupload.js"></script>
</head>
<body class="easyui-layout" fit="true">
<div region="north" style="height: 230px">
<div region="north" style="height: 190px">
<script>
document.write(addHead('商品库存信息', ''));
</script>
... ... @@ -90,27 +90,39 @@
}, {
title: "商品名称",
field: "productName",
width: 80,
width: 100,
align: "center",
}, {
title: "品牌",
field: "brandName",
width: 100,
width: 60,
align: "center"
}, {
title: "最低价",
field: "currentPrice",
width: 80,
align: "center"
width: 40,
align: "center",
formatter: function (value, rowData) {
if (value) {
return value;
}
return '--';
}
}, {
title: "可售库存",
field: "storage",
width: 200,
align: "center"
width: 20,
align: "center",
formatter: function (value, rowData) {
if (value) {
return value;
}
return 0;
}
}, {
title: "操作",
field: "operations",
width: 120,
width: 40,
align: "center",
formatter: function (value, rowData) {
var str = "<a role='edit' dataId='" + rowData.id + "' style='margin-left:10px'>库存详情</a>";
... ...