|
|
@@ -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({
|