|
@@ -555,6 +555,9 @@ export default {
|
|
|
methods: {
|
|
|
editBtn () {
|
|
|
this.form = Object.assign({},this.form,this.data)
|
|
|
+ this.form.productdiscount = this.form.productdiscount * 100
|
|
|
+ this.form.orderratio = this.form.orderratio * 100
|
|
|
+ this.form.discountrate = this.form.discountrate * 100
|
|
|
this.address = this.form.province + this.form.city + this.form.county + this.form.address
|
|
|
this.drawer = true
|
|
|
this.$nextTick(() => {
|
|
@@ -606,6 +609,18 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ } else {
|
|
|
+ this.form.orderratio ? this.form.orderratio = (parseInt(this.form.orderratio) / 100).toFixed(4) : ''
|
|
|
+ this.form.productdiscount ? this.form.productdiscount = (parseInt(this.form.productdiscount) / 100).toFixed(4) : ''
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "id":20221121185302,
|
|
|
+ "content": this.form
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,() => {
|
|
|
+ this.$refs.form.resetFields()
|
|
|
+ this.drawer = false
|
|
|
+ this.$emit('onSuccess')
|
|
|
+ })
|
|
|
}
|
|
|
} else {
|
|
|
if (this.$route.query.type == '直销项目') {
|