|
@@ -32,9 +32,8 @@
|
|
|
</a-form-model>
|
|
|
</div>
|
|
|
<!-- 导入按钮 -->
|
|
|
- <!-- v-if="$hasPermissions('B_inventory_warehouse_add')" -->
|
|
|
<div class="table-operator">
|
|
|
- <a-button id="inventoryImport-add" type="primary" class="button-error" @click="openGuideModal=true">散件导入</a-button>
|
|
|
+ <a-button id="inventoryImport-add" type="primary" class="button-error" v-if="$hasPermissions('B_bulkImport')" @click="openGuideModal=true">散件导入</a-button>
|
|
|
</div>
|
|
|
<!-- 合计 -->
|
|
|
<a-alert type="info" style="margin-bottom:10px">
|
|
@@ -60,7 +59,8 @@
|
|
|
bordered>
|
|
|
<!-- 导入单号 -->
|
|
|
<template slot="stockImportNo" slot-scope="text, record">
|
|
|
- <span class="table-td-link" @click="handleDetail(record)">{{ record.stockImportNo }}</span>
|
|
|
+ <span v-if="$hasPermissions('B_bulkImportDeail')" class="table-td-link" @click="handleDetail(record)">{{ record.stockImportNo }}</span>
|
|
|
+ <span v-else>{{ record.stockImportNo||'--' }}</span>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
</a-spin>
|
|
@@ -87,7 +87,7 @@ import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
import detailList from '@/views/inventoryManagement/inventoryImport/detailList.vue'
|
|
|
import getDate from '@/libs/getDate.js'
|
|
|
import importGuideModal from './importGuideModal.vue'
|
|
|
-import { reportStockImportList, reportStockImportCount } from '@/api/reportData'
|
|
|
+import { stockImportAllList, stockImportCount } from '@/api/stockImport'
|
|
|
export default {
|
|
|
components: { STable, VSelect, rangeDate, importGuideModal, detailList },
|
|
|
mixins: [commonMixin],
|
|
@@ -121,7 +121,7 @@ export default {
|
|
|
const params = Object.assign(parameter, this.queryParam)
|
|
|
this.spinning = true
|
|
|
delete params.time
|
|
|
- return reportStockImportList(params).then(res => {
|
|
|
+ return stockImportAllList(params).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|
|
|
data = res.data
|
|
@@ -168,7 +168,7 @@ export default {
|
|
|
},
|
|
|
// 合计
|
|
|
getCount (params) {
|
|
|
- reportStockImportCount(params).then(res => {
|
|
|
+ stockImportCount(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.totalData = res.data
|
|
|
} else {
|