This commit is contained in:
zhangdingyu
2019-04-01 13:51:53 +08:00
parent f6043520fe
commit 4caac39b10
2 changed files with 40 additions and 4 deletions

View File

@@ -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
}
})
}

View File

@@ -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