出库
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 机床查询
|
||||
export function getMachines(check, num) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: 'PDM_机床名称_查询数据',
|
||||
param: '项目流水号_check=' + check + '=int&项目流水号=' + num
|
||||
}
|
||||
})
|
||||
}
|
||||
// 分组查询
|
||||
export function getGroups(machineNumber) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: 'PDM_组件名称_查询数据',
|
||||
param: '机床流水号=' + machineNumber
|
||||
}
|
||||
})
|
||||
}
|
||||
// 主表查询
|
||||
export function getTable(num1, num2, num3, num4, num5, num6, pageCurrent, pageSize) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '车间生产管理工艺_库存管理_基本件库存查询',
|
||||
param: '机床流水号_check=' + num1 + '&机床流水号=' + num2 + '&组件流水号_check=' + num3 + '&组件流水号=' + num4 + '&零件图号_check=' + num5 + '&零件图号=' + num6,
|
||||
Pagination: pageCurrent + '&' + pageSize
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getMachines, getGroups, getTable } from '@/api/Inventory/StockInquiry'
|
||||
import { getMachines, getGroups, getTable } from '@/api/Inventory/OutPartSelect'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -165,9 +165,6 @@ export default {
|
||||
if (response.data.total === 0) {
|
||||
this.listLoading1 = false
|
||||
} else {
|
||||
// for (let i = 0; i < response.data.rows.length; i++) {
|
||||
// response.data.rows[i].入库时间 = response.data.rows[i].入库时间.split(' ')[0]
|
||||
// }
|
||||
this.tableData1 = response.data.rows
|
||||
this.total = response.data.total
|
||||
this.listLoading1 = false
|
||||
|
||||
Reference in New Issue
Block a user