|
@@ -113,11 +113,11 @@
|
|
|
fixed="right"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
- width="140"
|
|
|
+ width="100"
|
|
|
label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-if="isAuth('wh:inventory:info')" type="text" size="small" @click="detailHandle(scope.row.inventoryId)">查看</el-button>
|
|
|
- <el-button v-if="isAuth('wh:inventory:export') && Number(scope.row.state) === 0" type="text" size="small" @click="exportExcel(scope.row.inventoryId)">导出</el-button>
|
|
|
+<!-- <el-button v-if="isAuth('wh:inventory:export') && Number(scope.row.state) === 0" type="text" size="small" @click="exportExcel(scope.row.inventoryId)">导出</el-button>-->
|
|
|
<el-button v-if="isAuth('wh:inventory:import') && Number(scope.row.state) === 0" type="text" size="small" @click="importExcel()">导入</el-button>
|
|
|
<!-- <el-button v-if="isAuth('wh:inventory:start') && Number(scope.row.state) === 0" type="text" size="small" @click="addOrUpdateHandle(scope.row.inventoryId, false)">盘点</el-button>-->
|
|
|
</template>
|
|
@@ -303,7 +303,7 @@
|
|
|
fileChange (e) {
|
|
|
const file = e.target.files[0]
|
|
|
const formData = new FormData()
|
|
|
- formData.append('file', file)
|
|
|
+ formData.append('importFile', file)
|
|
|
this.$http({
|
|
|
url: this.$http.adornUrl('/biz-service/inventory-checking-ctl/importExcel'),
|
|
|
method: 'post',
|
|
@@ -311,6 +311,7 @@
|
|
|
}).then(({data}) => {
|
|
|
if (data && data.code === '200') {
|
|
|
this.$message.success('上传成功')
|
|
|
+ this.getDataList()
|
|
|
} else {
|
|
|
this.$message.error('上传失败')
|
|
|
}
|