|
@@ -33,6 +33,9 @@
|
|
|
:columns="columns"
|
|
|
tableLayout="auto"
|
|
|
rowKey="cbatch">
|
|
|
+ <span slot="action" slot-scope="record">
|
|
|
+ <a v-if="model.status===0||model.status===1" @click="handleDelete(record)">删除</a>
|
|
|
+ </span>
|
|
|
</a-table>
|
|
|
|
|
|
<history ref="history" :audit="false" :ok="handleCancel"></history>
|
|
@@ -40,7 +43,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { updateStore, fetchOutStoreForm } from '@/api/store/outstoreform'
|
|
|
+import { updateStore, fetchOutStoreForm, deleteSpare } from '@/api/store/outstoreform'
|
|
|
import DetailList from '@/components/tools/DetailList'
|
|
|
import History from '@/views/activiti/History'
|
|
|
const DetailListItem = DetailList.Item
|
|
@@ -126,6 +129,13 @@ export default {
|
|
|
{
|
|
|
title: '备注',
|
|
|
dataIndex: 'remark'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ key: 'action',
|
|
|
+ width: '200px',
|
|
|
+ align: 'center',
|
|
|
+ scopedSlots: { customRender: 'action' }
|
|
|
}
|
|
|
],
|
|
|
data: []
|
|
@@ -167,6 +177,11 @@ export default {
|
|
|
this.$message.info('成功')
|
|
|
this.handleOk()
|
|
|
})
|
|
|
+ },
|
|
|
+ handleDelete (record) {
|
|
|
+ deleteSpare({ id: [record.id] }).then(res => {
|
|
|
+ this.$message.info('操作成功!')
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|