|
@@ -102,7 +102,6 @@ export default {
|
|
|
{
|
|
|
prop: 'refundQty',
|
|
|
align: 'left',
|
|
|
-
|
|
|
label: '退货数量',
|
|
|
width: '180',
|
|
|
isInput: true
|
|
@@ -148,6 +147,11 @@ export default {
|
|
|
detailRefund({ id: this.detailsId }).then(res => {
|
|
|
this.dataList = res.data.orders
|
|
|
this.details = res.data
|
|
|
+ this.dataList.forEach(k => {
|
|
|
+ console.log(k,'11')
|
|
|
+ k.diffQty = Number(k.qty) - Number(k.refundQty||0)
|
|
|
+ })
|
|
|
+ console.log(this.dataList)
|
|
|
this.details.customerOrderNo = this.dataList[0].id
|
|
|
this.customerNumber = res.data.materialId
|
|
|
})
|
|
@@ -169,7 +173,14 @@ export default {
|
|
|
},
|
|
|
confirm(selected) {
|
|
|
// console.log(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)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
selected.forEach(k => {
|
|
|
k.diffQty = Number(k.qty) - Number(k.refundQty)
|
|
|
})
|
|
@@ -186,6 +197,12 @@ export default {
|
|
|
},
|
|
|
handleDel(item, index) {
|
|
|
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
|
|
|
+ }
|
|
|
+ })
|
|
|
// if (!this.dataList.length){
|
|
|
// this.$nextTick(()=>{
|
|
|
// this.details = {}
|
|
@@ -200,6 +217,13 @@ export default {
|
|
|
delChange() {
|
|
|
if (this.dataList.length) {
|
|
|
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) {
|
|
|
this.customerNumber = ''
|
|
|
}
|