|
@@ -23,7 +23,7 @@
|
|
|
id="storeSettlementPrice-price"
|
|
|
v-model="record.advicePrice"
|
|
|
:precision="2"
|
|
|
- :min="1"
|
|
|
+ :min="0"
|
|
|
:max="999"
|
|
|
style="width: 70%;"
|
|
|
placeholder="请输入回收价格"
|
|
@@ -92,10 +92,15 @@ export default {
|
|
|
// 保存价格
|
|
|
save (id, advicePrice) {
|
|
|
const params = { adviceType: this.type, id: id, advicePrice: advicePrice }
|
|
|
- if (!params.advicePrice) {
|
|
|
- this.$message.warning('回收价格不能为空')
|
|
|
+ if (params.advicePrice == 0 || !params.advicePrice) {
|
|
|
+ this.$message.warning('请输入正确的回收价格')
|
|
|
return false
|
|
|
}
|
|
|
+ // if (!params.advicePrice) {
|
|
|
+ // this.$message.warning('回收价格不能为空')
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
+
|
|
|
savPrice(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.$message.success(res.message)
|