浏览代码

修改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)