|
@@ -68,7 +68,8 @@ import {
|
|
goodsPurchaseRetAdd,
|
|
goodsPurchaseRetAdd,
|
|
goodsPurchaseRetSubmit,
|
|
goodsPurchaseRetSubmit,
|
|
goodsPurchaseRetConfirm,
|
|
goodsPurchaseRetConfirm,
|
|
- goodsPurchaseRetDetail
|
|
|
|
|
|
+ goodsPurchaseRetDetail,
|
|
|
|
+ goodsPurchaseRetDel
|
|
} from '@/api/merchandisePurchaseReturn.js'
|
|
} from '@/api/merchandisePurchaseReturn.js'
|
|
import form_ty from '../mixins/common_form'
|
|
import form_ty from '../mixins/common_form'
|
|
import out_storage_table from '../mixins/out_storage_table'
|
|
import out_storage_table from '../mixins/out_storage_table'
|
|
@@ -231,6 +232,23 @@ export default {
|
|
this.openDetailForm(row, 1)
|
|
this.openDetailForm(row, 1)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ del: {
|
|
|
|
+ prompt: '是否确定删除',
|
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
|
+ return row.status == 'SAVE'
|
|
|
|
+ },
|
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
|
+ goodsPurchaseRetDel({
|
|
|
|
+ id: row.id
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: '删除成功'
|
|
|
|
+ })
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
detail: {
|
|
detail: {
|
|
click: ({ row, index, column }) => {
|
|
click: ({ row, index, column }) => {
|
|
this.openDetailForm(row, 2)
|
|
this.openDetailForm(row, 2)
|