|
@@ -270,6 +270,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)
|
|
@@ -293,6 +296,9 @@ export default {
|
|
},
|
|
},
|
|
del: {
|
|
del: {
|
|
prompt: '确定删除吗?',
|
|
prompt: '确定删除吗?',
|
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
|
+ return row.doStatus == '2'
|
|
|
|
+ },
|
|
click: ({ row, index, column }) => {
|
|
click: ({ row, index, column }) => {
|
|
dailySummaryReduceDelete({ importBatchNo: row.importBatchNo }).then(res => {
|
|
dailySummaryReduceDelete({ importBatchNo: row.importBatchNo }).then(res => {
|
|
this.$message({ type: 'success', message: '删除成功!' })
|
|
this.$message({ type: 'success', message: '删除成功!' })
|
|
@@ -317,6 +323,9 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
del2: {
|
|
del2: {
|
|
|
|
+ conditions: ({ row, index, column }) => {
|
|
|
|
+ return row.doStatus == '2'
|
|
|
|
+ },
|
|
prompt: '确定删除吗?',
|
|
prompt: '确定删除吗?',
|
|
click: ({ row, index, column }) => {
|
|
click: ({ row, index, column }) => {
|
|
dailySummaryReduceItemDelete({ ids: row.id }).then(res => {
|
|
dailySummaryReduceItemDelete({ ids: row.id }).then(res => {
|