@@ -46,7 +46,7 @@
methods: {
// 失焦显示数字类型
inputMoney(el) {
- this.num = Number(el.target.value) || null
+ this.num = Number(el.target.value) || 0
},
// 获得焦点金额去掉格式
uninputMoney(el) {
@@ -199,6 +199,7 @@
close() {
this.selectRows = []
+ this.queryForm = this.$options.data().queryForm
this.$refs.businessTable.clearSelection()
save() {
@@ -163,6 +163,7 @@
this.$refs.contactTable.clearSelection()
@@ -175,6 +175,7 @@
this.$refs.customerTable.clearSelection()
@@ -186,6 +186,7 @@
@@ -168,6 +168,7 @@
this.$refs.distributorTable.clearSelection()
@@ -169,6 +169,7 @@
this.$refs.productTable.clearSelection()
@@ -1,5 +1,5 @@
<template>
- <el-dialog append-to-body :title="title" :visible.sync="innerVisible" width="40%">
+ <el-dialog append-to-body :title="title" :visible.sync="innerVisible" @close="close">
<el-row class="transfer">
<el-col :span="12">
<header>
@@ -119,6 +119,9 @@
}
this.innerVisible = true
+ close() {
+ },
this.innerVisible = false
this.$emit('save', this.selected, this.property, this.label)
@@ -454,6 +454,7 @@
showEdit(row) {
this.activeSteps = 1
+ this.productData = []
if (!row) {
this.title = '添加'
} else {