Commit e5cc4531 authored by 高宇's avatar 高宇

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

parent b7a76f75
...@@ -10,6 +10,14 @@ export function listCheck(query) { ...@@ -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) { export function abandon(data) {
return request({ return request({
url: '/wbwarehouse/abandon', url: '/wbwarehouse/abandon',
...@@ -21,17 +29,17 @@ export function abandon(data) { ...@@ -21,17 +29,17 @@ export function abandon(data) {
}) })
} }
export function checkType(data){ export function checkType(data) {
return request({ return request({
url: '/wbwarehouseinventorytemp/checkType/' + data, url: '/wbwarehouseinventorytemp/checkType/' + data,
method:'get' method: 'get'
}) })
} }
export function addList(data){ export function addList(data) {
return request({ return request({
url: '/wbwarehouseinventorytemp/addList', url: '/wbwarehouseinventorytemp/addList',
method:'post', method: 'post',
data, data,
headers: { headers: {
'Content-Type': 'application/json;charset=UTF-8' 'Content-Type': 'application/json;charset=UTF-8'
...@@ -39,16 +47,16 @@ export function addList(data){ ...@@ -39,16 +47,16 @@ export function addList(data){
}) })
} }
export function deleteByType(data){ export function deleteByType(data) {
return request({ return request({
url: '/wbwarehouseinventorytemp/deleteByType/' + data, url: '/wbwarehouseinventorytemp/deleteByType/' + data,
method:'delete' method: 'delete'
}) })
} }
export function checkInventory(query) { export function checkInventory(query) {
return request({ return request({
url: '/wbwarehouse/checkInventory/' + query, url: '/wbwarehouse/checkInventory/' + query,
method: 'get', method: 'get'
}); })
} }
...@@ -257,7 +257,7 @@ import { ...@@ -257,7 +257,7 @@ import {
getRole, getRole,
updateRole updateRole
} from '@/api/system/role' } 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 { roleMenuTreeselect, roleMenuTreeselectMC, treeselect as menuTreeselect } from '@/api/system/menu'
import { roleDeptTreeselect, treeselect as deptTreeselect } from '@/api/system/dept' import { roleDeptTreeselect, treeselect as deptTreeselect } from '@/api/system/dept'
// import { getRolesByInsId } from '../../../api/businessManage/template' // import { getRolesByInsId } from '../../../api/businessManage/template'
...@@ -378,8 +378,10 @@ export default { ...@@ -378,8 +378,10 @@ export default {
page: 1, page: 1,
rows: 10, rows: 10,
ptype: 1, ptype: 1,
pstatus: 0 pstatus: 0,
pn: '',
lot: '',
plocation: ''
}, },
// 表单参数 // 表单参数
form: { form: {
...@@ -476,7 +478,15 @@ export default { ...@@ -476,7 +478,15 @@ export default {
} else { } else {
let data = [] let data = []
if (this.selectList.length === 0) { 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 { } else {
data = this.selectList data = this.selectList
} }
...@@ -665,7 +675,10 @@ export default { ...@@ -665,7 +675,10 @@ export default {
page: 1, page: 1,
rows: 10, rows: 10,
ptype: 1, ptype: 1,
pstatus: 0 pstatus: 0,
pn: '',
lot: '',
plocation: ''
} }
this.resetForm('queryForm') this.resetForm('queryForm')
this.handleQuery() this.handleQuery()
......
...@@ -257,7 +257,7 @@ import { ...@@ -257,7 +257,7 @@ import {
getRole, getRole,
updateRole updateRole
} from '@/api/system/role' } 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 { roleMenuTreeselect, roleMenuTreeselectMC, treeselect as menuTreeselect } from '@/api/system/menu'
import { roleDeptTreeselect, treeselect as deptTreeselect } from '@/api/system/dept' import { roleDeptTreeselect, treeselect as deptTreeselect } from '@/api/system/dept'
// import { getRolesByInsId } from '../../../api/businessManage/template' // import { getRolesByInsId } from '../../../api/businessManage/template'
...@@ -379,7 +379,10 @@ export default { ...@@ -379,7 +379,10 @@ export default {
page: 1, page: 1,
rows: 10, rows: 10,
ptype: 2, ptype: 2,
pstatus: 0 pstatus: 0,
pn: '',
lot: '',
plocation: ''
}, },
// 表单参数 // 表单参数
...@@ -476,7 +479,15 @@ export default { ...@@ -476,7 +479,15 @@ export default {
} else { } else {
let data = [] let data = []
if (this.selectList.length === 0) { 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 { } else {
data = this.selectList data = this.selectList
} }
...@@ -665,7 +676,10 @@ export default { ...@@ -665,7 +676,10 @@ export default {
page: 1, page: 1,
rows: 10, rows: 10,
ptype: 2, ptype: 2,
pstatus: 0 pstatus: 0,
pn: '',
lot: '',
plocation: ''
} }
this.resetForm('queryForm') this.resetForm('queryForm')
this.handleQuery() 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