Authored by mali

求购库存

... ... @@ -213,6 +213,9 @@
<if test="sizeId != null">
and s.size_id = #{sizeId,jdbcType=INTEGER}
</if>
<if test="storageId != null">
and sp.storage_id = #{storageId,jdbcType=INTEGER}
</if>
</sql>
<select id="selectCount" resultType="java.lang.Integer">
select count(1)
... ...
... ... @@ -154,7 +154,7 @@
align: "center",
}, {
title: "SKU",
field: "productId",
field: "storageId",
width: 80,
align: "center"
}, {
... ... @@ -280,31 +280,6 @@
}
function editRow(id, productName) {
var skup = id;
var div = $("<div>").appendTo($(document.body));
var message = "确定要取消售卖此件商品吗?商品取消售卖后,卖家的该件商品强制下架,退还卖家保证金";
$.messager.confirm("取消售卖提醒", message, function (flag) {
if (flag) {
$.messager.progress({
title: "正在执行",
msg: "正在执行,请稍后...",
interval: 500,
text: ""
});
$.post(contextPath + "/product/cancelSaleSkup",{"skup":skup, "productName" : productName}, function (data) {
$.messager.progress("close");
if (data.code == 200) {
$("#skupTable").myDatagrid("reload");
$.messager.show({title: "提示", msg: '操作成功', height: 120});
} else {
$.messager.alert("失败", '操作失败', "error");
}
}, "json");
}
});
}
// 取消求购
function cancelBid(skup) {
$.post(contextPath + "/storage/cancelBid",{"skup":skup}, function (data) {
... ...