二级库问题调试
This commit is contained in:
parent
f634e3069a
commit
0eb6b57d39
|
|
@ -37,3 +37,12 @@ export function getRecordsApi(data) {
|
|||
params: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 二级库 报废管理列表接口
|
||||
export function getScrapListApi(data) {
|
||||
return request({
|
||||
url: '/material/secondaryWarehouse/getSecondScrapList',
|
||||
method: 'get',
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
prop="typeName"
|
||||
align="center"
|
||||
label="机具名称"
|
||||
show-overflow-tooltip
|
||||
|
|
@ -60,37 +60,60 @@
|
|||
<el-table-column
|
||||
label="规格型号"
|
||||
align="center"
|
||||
prop="unitName"
|
||||
prop="modelName"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
<!-- <el-table-column
|
||||
label="设备编码"
|
||||
align="center"
|
||||
prop="unitName"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
/> -->
|
||||
<el-table-column
|
||||
label="计量单位"
|
||||
align="center"
|
||||
prop="unitName"
|
||||
prop="nuitName"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
label="库存数量"
|
||||
align="center"
|
||||
prop="unitName"
|
||||
prop="num"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
label="报废数量"
|
||||
align="center"
|
||||
prop="unitName"
|
||||
show-overflow-tooltip
|
||||
<el-table-column label="报废数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
<template v-if="scope.row.manageType == 0">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
@click="onViewCode(scope.row.maIds, scope.$index)"
|
||||
>
|
||||
编码选择
|
||||
{{
|
||||
scope.row.maCodeList.length > 0
|
||||
? `(${scope.row.maCodeList.length})`
|
||||
: ''
|
||||
}}
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<el-input-number
|
||||
v-else
|
||||
:min="0"
|
||||
:precision="0"
|
||||
:max="scope.row.num"
|
||||
v-model="scope.row.outNum"
|
||||
style="width: 120px"
|
||||
placeholder="输入数量"
|
||||
size="small"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="报废原因"
|
||||
align="center"
|
||||
prop="unitName"
|
||||
prop=""
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
</el-table>
|
||||
|
|
@ -99,6 +122,8 @@
|
|||
|
||||
<script>
|
||||
import PageHeader from '@/components/pageHeader'
|
||||
import { getConfigListApi } from '@/api/claimAndRefund/config-pages.js'
|
||||
import { secondaryWarehouseList } from '@/api/claimAndRefund/secondStore'
|
||||
export default {
|
||||
components: { PageHeader },
|
||||
props: {
|
||||
|
|
@ -112,11 +137,23 @@ export default {
|
|||
unitList: [],
|
||||
typeList: [],
|
||||
tableList: [],
|
||||
total: 0,
|
||||
loading: false,
|
||||
selectCodeVisible: false,
|
||||
codeList: [],
|
||||
pageContent: '报废申请',
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
currentIndex: 0,
|
||||
queryCodeParams: {
|
||||
maCode: '',
|
||||
maIds: '',
|
||||
type: 1,
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -133,6 +170,37 @@ export default {
|
|||
.then(async () => {})
|
||||
.catch(() => {})
|
||||
},
|
||||
getList() {
|
||||
this.loading = true
|
||||
secondaryWarehouseList(this.queryParams).then((res) => {
|
||||
this.tableList = res.rows
|
||||
this.total = res.total
|
||||
this.loading = false
|
||||
|
||||
this.tableList = this.tableList.map((e) => {
|
||||
return {
|
||||
...e,
|
||||
outNum: 0,
|
||||
maCodeList: [],
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
// 编码选择弹框
|
||||
onViewCode(maIds, index) {
|
||||
this.queryCodeParams.maIds = maIds
|
||||
this.currentIndex = index
|
||||
this.getMaStatusByMaIdData()
|
||||
this.queryCodeParams.maCode = ''
|
||||
this.selectCodeVisible = true
|
||||
},
|
||||
async getMaStatusByMaIdData() {
|
||||
const res = await getMaStatusByMaIdApi(this.queryCodeParams)
|
||||
this.codeList = res.rows
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue