Commit 8df0263d authored by 李硕's avatar 李硕

库存校验

parent 50a9e51c
......@@ -421,7 +421,7 @@ Component({
}
// 库存奖品的库存值判断
let usePass = switchStock == 1 ? +stock > (useStock || 0) : true;
let stockPass = switchStock == 1 ? !validateRangeNumber(credits, [0, 99999]) : true;
let stockPass = switchStock == 1 ? validateRangeNumber(credits, [0, 99999]) : true;
if (!stockPass || !usePass) {
this.showItemTips(
"prizeNumberTips",
......
......@@ -19,7 +19,7 @@
<form-item class="edit-content-formItem" label="奖品编号" labelTextAlign="right" asterisk="{{false}}">
<input data-type="prize" value="{{searchInfo.prizeId}}" onChange="onInputChange" hasLimitHint="true" name="奖品编号" />
</form-item>
<form-item class="edit-content-formItem" label="用户id" labelTextAlign="right" asterisk="{{false}}">
<form-item class="edit-content-formItem" label="用户昵称" labelTextAlign="right" asterisk="{{false}}">
<input data-type="user" value="{{searchInfo.userNick}}" onChange="onInputChange" hasLimitHint="true" name="用户id" />
</form-item>
<form-item class="edit-content-formItem" label="发奖时间" labelTextAlign="right" asterisk="{{false}}">
......
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