|
@@ -68,6 +68,10 @@
|
|
|
<a-popconfirm v-if="$auth('store-in-store-forms-del')&& record.status==1" title="是否要删除该条数据?" @confirm="batchDelete(record.id)">
|
|
|
<a>删除</a>
|
|
|
</a-popconfirm>
|
|
|
+ <a-divider v-if="record.status==2" type="vertical" />
|
|
|
+ <a-popconfirm v-if="record.status==2" title="是否要撤销?" @confirm="updateStoreBack(record.id)">
|
|
|
+ <a>撤销</a>
|
|
|
+ </a-popconfirm>
|
|
|
</template>
|
|
|
</span>
|
|
|
<span slot="status" slot-scope="text">
|
|
@@ -85,7 +89,7 @@
|
|
|
import { STable, Ellipsis } from '@/components'
|
|
|
import BaseForm from './modules/BaseForm'
|
|
|
import Detail from './modules/Detail'
|
|
|
-import { getInStoreFormPage, deleteInStoreForms, fetchInStoreForm, updateStore, exportInStoreForm } from '@/api/store/instoreform'
|
|
|
+import { getInStoreFormPage, deleteInStoreForms, fetchInStoreForm, updateStore, updateStoreBack, exportInStoreForm } from '@/api/store/instoreform'
|
|
|
|
|
|
export default {
|
|
|
name: 'InStoreFormList',
|
|
@@ -254,6 +258,12 @@ export default {
|
|
|
this.$refs.table.refresh()
|
|
|
})
|
|
|
},
|
|
|
+ updateStoreBack(id){
|
|
|
+ updateStoreBack({id:id}).then(res => {
|
|
|
+ this.$message.info('撤销成功')
|
|
|
+ this.$refs.table.refresh()
|
|
|
+ })
|
|
|
+ },
|
|
|
handleView (record) {
|
|
|
fetchInStoreForm({ id: record.id }).then(res => {
|
|
|
const modal = this.$refs.detailModal
|