zhouhao 2 years ago
parent
commit
50736a01b7

+ 1 - 0
src/components/SalesDialog/SalesDialog.vue

@@ -3,6 +3,7 @@
     <el-dialog
     <el-dialog
       title="添加产品"
       title="添加产品"
       :visible.sync="dialogVisible"
       :visible.sync="dialogVisible"
+      :before-close="$parent.dialogVisible = false"
       width="75%"
       width="75%"
     >
     >
       <template-page
       <template-page

+ 2 - 2
src/views/sales_control/sales_management/components/customer_sales_form.vue

@@ -146,13 +146,13 @@ export default {
     },
     },
     confirm(selected) {
     confirm(selected) {
       console.log(selected)
       console.log(selected)
-      this.dataList = selected
+      this.dataList = [...this.dataList,...selected]
       this.$refs.header.screenForm.customerName = this.dataList[0].customerName
       this.$refs.header.screenForm.customerName = this.dataList[0].customerName
       this.$refs.header.screenForm.customerNumber = this.dataList[0].customerNumber
       this.$refs.header.screenForm.customerNumber = this.dataList[0].customerNumber
       this.$refs.header.screenForm.stockType = this.dataList[0].stockType
       this.$refs.header.screenForm.stockType = this.dataList[0].stockType
       this.customerNumber = this.dataList[0].customerNumber
       this.customerNumber = this.dataList[0].customerNumber
       this.dialogVisible = false
       this.dialogVisible = false
-      this.$refs.dia.$refs.pageRef.$refs.zjpage.$refs.tableEl.$refs.tableView.clearSelection()
+      // this.$refs.dia.$refs.pageRef.$refs.zjpage.$refs.tableEl.$refs.tableView.clearSelection()
     },
     },
     handleDel(item, index) {
     handleDel(item, index) {
       this.dataList.splice(index, 1)
       this.dataList.splice(index, 1)

+ 1 - 1
src/views/sales_control/sales_management/components/return_sales_form.vue

@@ -152,7 +152,7 @@ export default {
     confirm(selected) {
     confirm(selected) {
       console.log(selected)
       console.log(selected)
       // console.log(selected)
       // console.log(selected)
-      this.dataList = selected
+      this.dataList = [...this.dataList,...selected]
       this.details = this.dataList[0]
       this.details = this.dataList[0]
       this.details.customerOrderNo = this.dataList[0].id
       this.details.customerOrderNo = this.dataList[0].id
       this.details.id = ''
       this.details.id = ''