|
@@ -37,7 +37,11 @@
|
|
|
</div>
|
|
|
<div class="hui-flex-box hui-flex hui-table">
|
|
|
<div class="hui-content-insert">
|
|
|
- <el-button v-permission="'/work/property/inventory/detail'" type="primary" size="medium" @click="insert">新增盘点</el-button>
|
|
|
+ <el-button v-permission="'/work/property/inventory/add'" type="primary" size="medium" @click="insert">新增盘点</el-button>
|
|
|
+ <el-button v-permission="'/work/property/inventory/add'" type="info" size="medium"
|
|
|
+ @click="outputFile">
|
|
|
+ 导出数据
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
<div class="hui-flex-box">
|
|
|
<el-table :data="tableData" row-key="id" border height="100%">
|
|
@@ -127,6 +131,7 @@
|
|
|
} from '@/httpApi/property'
|
|
|
import flowForm from '@/components/flow/flowForm'
|
|
|
import flowDetail from '@/components/flow/flowDetail'
|
|
|
+ import config from '@/config'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -171,6 +176,9 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ outputFile() {
|
|
|
+ window.location.href = `${config.baseURL}/api/operateDevice/exportStocktaking/${this.$store.getters.project.id}/0`;
|
|
|
+ },
|
|
|
initDeviceList() {
|
|
|
getDevicePartList(this.$store.getters.organization.id, this.$store.getters.project.id).then(res => {
|
|
|
if (res.state) {
|