zhangdan 4 anni fa
parent
commit
75952b6cb0
1 ha cambiato i file con 8 aggiunte e 3 eliminazioni
  1. 8 3
      src/views/recoveryManage/recoveryPriceSet.vue

+ 8 - 3
src/views/recoveryManage/recoveryPriceSet.vue

@@ -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)