Commit e5cc4531 authored by 高宇's avatar 高宇

工序印刷,切换tab,切换之前什么样,切换之后就什么样

parent b7a76f75
......@@ -10,6 +10,14 @@ export function listCheck(query) {
})
}
export function ListAllWarehose(query) {
return request({
url: '/wbwarehouse/queryWbWarehouse',
method: 'get',
params: query
})
}
export function abandon(data) {
return request({
url: '/wbwarehouse/abandon',
......@@ -21,17 +29,17 @@ export function abandon(data) {
})
}
export function checkType(data){
export function checkType(data) {
return request({
url: '/wbwarehouseinventorytemp/checkType/' + data,
method:'get'
method: 'get'
})
}
export function addList(data){
export function addList(data) {
return request({
url: '/wbwarehouseinventorytemp/addList',
method:'post',
method: 'post',
data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
......@@ -39,16 +47,16 @@ export function addList(data){
})
}
export function deleteByType(data){
export function deleteByType(data) {
return request({
url: '/wbwarehouseinventorytemp/deleteByType/' + data,
method:'delete'
method: 'delete'
})
}
export function checkInventory(query) {
return request({
url: '/wbwarehouse/checkInventory/' + query,
method: 'get',
});
method: 'get'
})
}
......@@ -257,7 +257,7 @@ import {
getRole,
updateRole
} from '@/api/system/role'
import { checkType, listCheck, addList, deleteByType, checkInventory } from '@/api/equipment/check'
import { checkType, listCheck, addList, deleteByType, checkInventory, ListAllWarehose } from '@/api/equipment/check'
import { roleMenuTreeselect, roleMenuTreeselectMC, treeselect as menuTreeselect } from '@/api/system/menu'
import { roleDeptTreeselect, treeselect as deptTreeselect } from '@/api/system/dept'
// import { getRolesByInsId } from '../../../api/businessManage/template'
......@@ -378,8 +378,10 @@ export default {
page: 1,
rows: 10,
ptype: 1,
pstatus: 0
pstatus: 0,
pn: '',
lot: '',
plocation: ''
},
// 表单参数
form: {
......@@ -476,7 +478,15 @@ export default {
} else {
let data = []
if (this.selectList.length === 0) {
data = this.equipmentList
if (this.queryParams.pn === '' && this.queryParams.lot === '' && this.queryParams.plocation === '') {
data = this.equipmentList
} else {
ListAllWarehose(this.queryParams).then(res => {
if (res.code === 200) {
data = res.data
}
})
}
} else {
data = this.selectList
}
......@@ -665,7 +675,10 @@ export default {
page: 1,
rows: 10,
ptype: 1,
pstatus: 0
pstatus: 0,
pn: '',
lot: '',
plocation: ''
}
this.resetForm('queryForm')
this.handleQuery()
......
......@@ -257,7 +257,7 @@ import {
getRole,
updateRole
} from '@/api/system/role'
import { checkType, listCheck, addList, deleteByType, checkInventory } from '@/api/equipment/check'
import {checkType, listCheck, addList, deleteByType, checkInventory, ListAllWarehose} from '@/api/equipment/check'
import { roleMenuTreeselect, roleMenuTreeselectMC, treeselect as menuTreeselect } from '@/api/system/menu'
import { roleDeptTreeselect, treeselect as deptTreeselect } from '@/api/system/dept'
// import { getRolesByInsId } from '../../../api/businessManage/template'
......@@ -379,7 +379,10 @@ export default {
page: 1,
rows: 10,
ptype: 2,
pstatus: 0
pstatus: 0,
pn: '',
lot: '',
plocation: ''
},
// 表单参数
......@@ -476,7 +479,15 @@ export default {
} else {
let data = []
if (this.selectList.length === 0) {
data = this.equipmentList
if (this.queryParams.pn === '' && this.queryParams.lot === '' && this.queryParams.plocation === '') {
data = this.equipmentList
} else {
ListAllWarehose(this.queryParams).then(res => {
if (res.code === 200) {
data = res.data
}
})
}
} else {
data = this.selectList
}
......@@ -665,7 +676,10 @@ export default {
page: 1,
rows: 10,
ptype: 2,
pstatus: 0
pstatus: 0,
pn: '',
lot: '',
plocation: ''
}
this.resetForm('queryForm')
this.handleQuery()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment