二级库库存台账完善

This commit is contained in:
BianLzhaoMin 2025-01-15 17:12:56 +08:00
parent 5a3f6831c0
commit ef8899d282
3 changed files with 33 additions and 27 deletions

View File

@ -32,3 +32,12 @@ export function delTeamsApi(data) {
data, data,
}) })
} }
// 班组库存台账列表
export function getDevStockCountApi(data) {
return request({
url: '/material/secondaryWarehouse/getDevStockCount',
method: 'get',
params: data,
})
}

View File

@ -258,7 +258,9 @@ export default {
onChangeRadio() { onChangeRadio() {
this.getList() this.getList()
}, },
handleQuery() {}, handleQuery() {
this.getList()
},
resetQuery() { resetQuery() {
this.resetForm('queryForm') this.resetForm('queryForm')
this.queryParams.unitId = '' this.queryParams.unitId = ''

View File

@ -7,9 +7,9 @@
size="small" size="small"
:inline="true" :inline="true"
> >
<el-form-item prop="name"> <el-form-item prop="keyword">
<el-input <el-input
v-model="queryParams.name" v-model="queryParams.keyword"
placeholder="请输入关键字" placeholder="请输入关键字"
clearable clearable
style="width: 240px" style="width: 240px"
@ -19,7 +19,7 @@
<el-form-item prop="unitId"> <el-form-item prop="unitId">
<el-select <el-select
v-model="queryParams.unitId" v-model="queryParams.unitId"
placeholder="请选择所属上级" placeholder="请选择所属二级库"
clearable clearable
> >
<el-option <el-option
@ -62,39 +62,39 @@
" "
/> />
<el-table-column <el-table-column
prop="name" prop="groupName"
align="center" align="center"
label="班组名称" label="班组名称"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
label="所属上级" label="所属二级库"
align="center" align="center"
prop="" prop="name"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
label="机具名称" label="机具名称"
align="center" align="center"
prop="" prop="typeName"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
label="规格型号" label="规格型号"
align="center" align="center"
prop="" prop="modelName"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
label="计量单位" label="计量单位"
align="center" align="center"
prop="" prop="nuitName"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
label="库存数量" label="库存数量"
align="center" align="center"
prop="" prop="receiveNum"
show-overflow-tooltip show-overflow-tooltip
/> />
</el-table> </el-table>
@ -109,25 +109,16 @@
</template> </template>
<script> <script>
import { import { getDevStockCountApi } from '@/api/claimAndRefund/teams-manage.js'
addTeamsApi,
// delConfigApi,
editTeamsApi,
getTeamsListApi,
} from '@/api/claimAndRefund/teams-manage.js'
import { getUnitData } from '@/api/claimAndRefund/receive.js' import { getUnitData } from '@/api/claimAndRefund/receive.js'
import { getConfigListApi } from '@/api/claimAndRefund/config-pages.js'
export default { export default {
name: 'SecondStore', name: 'SecondStore',
data() { data() {
return { return {
configList: [], configList: [],
editId: '',
//
addAndEditForm: {
name: '',
unitId: '',
},
// //
loading: false, loading: false,
// //
@ -138,7 +129,7 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
name: '', keyword: undefined,
unitId: undefined, unitId: undefined,
}, },
} }
@ -151,7 +142,8 @@ export default {
// //
async getConfigList() { async getConfigList() {
this.loading = true this.loading = true
const { data: res } = await getTeamsListApi(this.queryParams) const res = await getDevStockCountApi(this.queryParams)
console.log(res, '班组库存台账')
this.loading = false this.loading = false
this.configList = res.rows this.configList = res.rows
this.total = res.total this.total = res.total
@ -159,8 +151,11 @@ export default {
// //
getUnitList() { getUnitList() {
getUnitData().then((response) => { getConfigListApi({
this.unitList = response.data pageNum: 1,
pageSize: 999,
}).then((response) => {
this.unitList = response.data.rows
}) })
}, },