Explorar el Código

业务员管理新建调整

qymljy hace 1 año
padre
commit
5df6540cd9
Se han modificado 1 ficheros con 19 adiciones y 14 borrados
  1. 19 14
      src/Form/marketing2/saler/add.vue

+ 19 - 14
src/Form/marketing2/saler/add.vue

@@ -150,20 +150,25 @@ export default {
             "id":20221011144703,
             "content": this.form
           })
-          this.tool.showMessage(res,()=>{
-            this.dialogVisible = false
-            this.$refs.selectMenber.value.name = ''
-            this.$refs.selectMenber.value.hrid = ''
-            this.$refs.areaList.pointValue = ''
-            this.$emit('onSuccess')
-            this.form = {
-              "sa_saleareaid":'',
-              "hrid":'',
-              "discountrate":'',
-              "iseditprice":"0",
-              "areaname":''
-            }
-          })
+          if (res.code === 0){
+            this.form.discountrate = Math.round((this.form.discountrate * 100)*100)/100
+          }else {
+            this.tool.showMessage(res,()=>{
+              this.dialogVisible = false
+              this.$refs.selectMenber.value.name = ''
+              this.$refs.selectMenber.value.hrid = ''
+              this.$refs.areaList.pointValue = ''
+              this.$emit('onSuccess')
+              this.form = {
+                "sa_saleareaid":'',
+                "hrid":'',
+                "discountrate":'',
+                "iseditprice":"0",
+                "areaname":''
+              }
+            })
+          }
+
         }).catch((err) => {
           console.log(err)
           this.$message({