소스 검색

修改bug

chenrui 1 년 전
부모
커밋
1a62323012
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/views/productManagement/productInfo/edit.vue

+ 4 - 0
src/views/productManagement/productInfo/edit.vue

@@ -392,6 +392,10 @@ export default {
           }
           delete form.productType
           _this.spinning = true
+          // 后台不要为null的值
+          form.carOwnersPrice = !form.carOwnersPrice ? '' : form.carOwnersPrice
+          form.specialPrice = !form.specialPrice ? '' : form.specialPrice
+          form.terminalPrice = !form.terminalPrice ? '' : form.terminalPrice
           dealerProductSave(form).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)