|
@@ -34,13 +34,6 @@
|
|
|
allowClear></v-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :md="4" :sm="24">
|
|
|
- <a-form-item label="仓库">
|
|
|
- <a-select id="inventoryQueryWarehouseDetail-warehouseSn" allowClear placeholder="请选择仓库" v-model="queryParam.warehouseSn" >
|
|
|
- <a-select-option v-for="item in warehouseList" :key="item.warehouseSn" :value="item.warehouseSn">{{ item.name }}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="单据审核时间">
|
|
|
<rangeDate ref="rangeDate" @change="dateChange" />
|
|
@@ -139,7 +132,6 @@ import { STable, VSelect } from '@/components'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
|
import { stockFlowCount, stockFlowList, stockFlowExport } from '@/api/stock'
|
|
|
-import { warehouseAllList } from '@/api/warehouse'
|
|
|
export default {
|
|
|
name: 'InventoryQueryWarehouseDetail',
|
|
|
mixins: [commonMixin],
|
|
@@ -165,7 +157,7 @@ export default {
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
|
this.spinning = true
|
|
|
- const params = Object.assign(parameter, this.queryParam, { productSn: this.$route.params.sn })
|
|
|
+ const params = Object.assign(parameter, this.queryParam, { productSn: this.$route.params.sn, warehouseSn: this.$route.params.warehouseSn })
|
|
|
return stockFlowList(params).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|
|
@@ -187,7 +179,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
exportLoading: false,
|
|
|
- warehouseList: [], // 仓库 下拉数据
|
|
|
productTotal: null // 合计
|
|
|
}
|
|
|
},
|
|
@@ -268,22 +259,11 @@ export default {
|
|
|
handleBack () {
|
|
|
this.$router.push({ path: '/inventoryManagement/inventoryQuery/list', query: { closeLastOldTab: true } })
|
|
|
},
|
|
|
- // 仓库下拉数据
|
|
|
- getWarehouseList (type) {
|
|
|
- warehouseAllList({}).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- this.warehouseList = res.data
|
|
|
- } else {
|
|
|
- this.warehouseList = []
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
pageInit () {
|
|
|
const _this = this
|
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
|
_this.setTableH()
|
|
|
})
|
|
|
- this.getWarehouseList()
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|