linwenxin преди 7 месеца
родител
ревизия
e2f9c46adb
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      src/packageMaterial/pages/newSale/order.vue

+ 4 - 0
src/packageMaterial/pages/newSale/order.vue

@@ -134,6 +134,10 @@ 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(`服务费用需要为数字`)
+
       this.$api.postJson('/pay/buy', {
         settlementType: this.salesType,
         goodsType: this.type,