|
@@ -157,6 +157,7 @@ export default {
|
|
},
|
|
},
|
|
sparePartsReturnSn: null,
|
|
sparePartsReturnSn: null,
|
|
sparePartsReturnNo: null,
|
|
sparePartsReturnNo: null,
|
|
|
|
+ chooseList: null,
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', align: 'center', width: '4%' },
|
|
{ title: '序号', dataIndex: 'no', align: 'center', width: '4%' },
|
|
{
|
|
{
|
|
@@ -240,6 +241,7 @@ export default {
|
|
}
|
|
}
|
|
this.disabled = false
|
|
this.disabled = false
|
|
}
|
|
}
|
|
|
|
+ this.chooseList = data
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -372,7 +374,11 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
beforeSubmit () {
|
|
beforeSubmit () {
|
|
- this.openDepartUserModal = true
|
|
|
|
|
|
+ if (this.chooseList && this.chooseList.length > 0) {
|
|
|
|
+ this.openDepartUserModal = true
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.warning('请先添加要退货的产品!')
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 提交采购退货
|
|
// 提交采购退货
|
|
handleSubmit (data) {
|
|
handleSubmit (data) {
|