|
@@ -140,8 +140,16 @@ export default {
|
|
return func(...p)
|
|
return func(...p)
|
|
},
|
|
},
|
|
confirm(selected) {
|
|
confirm(selected) {
|
|
|
|
+ this.$refs.dia.$refs.pageRef.$refs.zjpage.$refs.tableEl.tableData.forEach(k=>{
|
|
|
|
+ selected.forEach(l=>{
|
|
|
|
+ if ( l.id == k.id){
|
|
|
|
+ // k.disabled = true
|
|
|
|
+ this.$set(k,'disabled',false)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
this.dataList = [...this.dataList,...selected]
|
|
this.dataList = [...this.dataList,...selected]
|
|
- console.log(selected,this.dataList[0].stockType)
|
|
|
|
|
|
+ console.log(selected,this.$refs.dia.$refs.pageRef.$refs.zjpage.$refs.tableEl.tableData)
|
|
if (!this.detailsId){
|
|
if (!this.detailsId){
|
|
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
|
|
@@ -150,10 +158,16 @@ export default {
|
|
|
|
|
|
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)
|
|
|
|
+ this.$refs.dia.$refs.pageRef.$refs.zjpage.$refs.tableEl.tableData.find(k=>{
|
|
|
|
+ if (k.id==item.id){
|
|
|
|
+ this.$set(k,'disabled',true)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ })
|
|
// this.$refs.multipleTable.clearSelection()
|
|
// this.$refs.multipleTable.clearSelection()
|
|
|
|
|
|
// console.log(this.$refs.dia)
|
|
// console.log(this.$refs.dia)
|
|
@@ -169,9 +183,15 @@ export default {
|
|
return arr1.filter(v => arr2.every(val => val.id != v.id))
|
|
return arr1.filter(v => arr2.every(val => val.id != v.id))
|
|
},
|
|
},
|
|
delChange() {
|
|
delChange() {
|
|
-
|
|
|
|
if (this.dataList.length){
|
|
if (this.dataList.length){
|
|
this.dataList = this.resArr(this.dataList,this.selection)
|
|
this.dataList = this.resArr(this.dataList,this.selection)
|
|
|
|
+ this.$refs.dia.$refs.pageRef.$refs.zjpage.$refs.tableEl.tableData.forEach(k=>{
|
|
|
|
+ this.selection.forEach(l=>{
|
|
|
|
+ if ( l.id == k.id){
|
|
|
|
+ this.$set(k,'disabled',true)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
if (!this.dataList.length){
|
|
if (!this.dataList.length){
|
|
this.customerNumber = ''
|
|
this.customerNumber = ''
|
|
}
|
|
}
|