|
@@ -149,6 +149,11 @@
|
|
|
class="tui-input" name="weight" placeholder="单位为公斤" maxlength="50" type="digit" />
|
|
class="tui-input" name="weight" placeholder="单位为公斤" maxlength="50" type="digit" />
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
|
|
+ <view class="tui-title">每人限购</view>
|
|
|
|
|
+ <input v-model="form.limitBuy" style="width:300upx;" @focus="form.limitBuy=''" placeholder-class="phcolor" class="tui-input" name="limitBuy" placeholder="请填写,填0不限购" maxlength="50" type="number" />
|
|
|
|
|
+ </tui-list-cell>
|
|
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">库存预警</view>
|
|
<view class="tui-title">库存预警</view>
|
|
|
<input v-model="form.stockWarning" style="width:300upx;" @focus="form.stockWarning=''" placeholder-class="phcolor" class="tui-input" name="stockWarning" placeholder="请填写" maxlength="50" type="number" />
|
|
<input v-model="form.stockWarning" style="width:300upx;" @focus="form.stockWarning=''" placeholder-class="phcolor" class="tui-input" name="stockWarning" placeholder="请填写" maxlength="50" type="number" />
|
|
@@ -366,6 +371,7 @@ export default {
|
|
|
skMore:3,
|
|
skMore:3,
|
|
|
weight:'',
|
|
weight:'',
|
|
|
cover:[],
|
|
cover:[],
|
|
|
|
|
+ limitBuy:0,
|
|
|
stockWarning:5,
|
|
stockWarning:5,
|
|
|
status:2,
|
|
status:2,
|
|
|
itemId:0,
|
|
itemId:0,
|
|
@@ -918,7 +924,6 @@ export default {
|
|
|
hidden = 1
|
|
hidden = 1
|
|
|
}
|
|
}
|
|
|
prevPage.$vm.modifyStock = {id:this.form.id,stock:this.form.stock,hidden:hidden};
|
|
prevPage.$vm.modifyStock = {id:this.form.id,stock:this.form.stock,hidden:hidden};
|
|
|
-
|
|
|
|
|
uni.navigateBack({})
|
|
uni.navigateBack({})
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -1005,7 +1010,12 @@ export default {
|
|
|
name: "stockWarning",
|
|
name: "stockWarning",
|
|
|
rule: ["required"],
|
|
rule: ["required"],
|
|
|
msg: ["请填写库存预警"]
|
|
msg: ["请填写库存预警"]
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "limitBuy",
|
|
|
|
|
+ rule: ["required"],
|
|
|
|
|
+ msg: ["请填写限购数,0不限购"]
|
|
|
|
|
+ },
|
|
|
];
|
|
];
|
|
|
// 进行表单检查
|
|
// 进行表单检查
|
|
|
let formData = e.detail.value;
|
|
let formData = e.detail.value;
|