|
@@ -269,6 +269,9 @@ export default {
|
|
},
|
|
},
|
|
coverImport: {
|
|
coverImport: {
|
|
import: true,
|
|
import: true,
|
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
|
+ return row.doStatus == '2'
|
|
|
|
+ },
|
|
click: ({ row, index, column, file }) => {
|
|
click: ({ row, index, column, file }) => {
|
|
var formdata = new FormData()
|
|
var formdata = new FormData()
|
|
formdata.append('file', file)
|
|
formdata.append('file', file)
|
|
@@ -291,6 +294,9 @@ export default {
|
|
},
|
|
},
|
|
del: {
|
|
del: {
|
|
prompt: '确定删除吗?',
|
|
prompt: '确定删除吗?',
|
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
|
+ return row.doStatus == '2'
|
|
|
|
+ },
|
|
click: ({ row, index, column }) => {
|
|
click: ({ row, index, column }) => {
|
|
dailySummaryReduceCountDelete({ importBatchNo: row.importBatchNo }).then(res => {
|
|
dailySummaryReduceCountDelete({ importBatchNo: row.importBatchNo }).then(res => {
|
|
this.$message({ type: 'success', message: '删除成功!' })
|
|
this.$message({ type: 'success', message: '删除成功!' })
|
|
@@ -315,6 +321,9 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
del2: {
|
|
del2: {
|
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
|
+ return row.doStatus == '2'
|
|
|
|
+ },
|
|
prompt: '确定删除吗?',
|
|
prompt: '确定删除吗?',
|
|
click: ({ row, index, column }) => {
|
|
click: ({ row, index, column }) => {
|
|
dailySummaryReduceBatchDel({ ids: row.id }).then(res => {
|
|
dailySummaryReduceBatchDel({ ids: row.id }).then(res => {
|