瀏覽代碼

no message

linwenxin 7 月之前
父節點
當前提交
1fff067291
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/packageMaterial/pages/newSale/order.vue

+ 2 - 3
src/packageMaterial/pages/newSale/order.vue

@@ -134,9 +134,8 @@ export default {
 
   methods: {
     submitData(type) {
-
-      if ((Number(this.otherPrice)+0)==this.otherPrice) return this.$toast(`其他费用需要为数字`)
-      if ((Number(this.servicePrice)+0)==this.servicePrice) return this.$toast(`服务费用需要为数字`)
+      if ((Number(this.otherPrice)+0)!==Number(this.otherPrice)) return this.$toast(`其他费用需要为数字`)
+      if ((Number(this.servicePrice)+0)!==Number(this.servicePrice)) return this.$toast(`服务费用需要为数字`)
 
       this.$api.postJson('/pay/buy', {
         settlementType: this.salesType,