Commit 6e124cce authored by hubaoshan's avatar hubaoshan

wcp

parent 5130ca7e
import request from '@/utils/request'
import Qs from 'qs'
export function getUser(params) {
return request({
url: 'wcporderuser/userList',
method: 'get',
params
})
}
export function getPdList(params) {
return request({
url: 'wcporderuser/pdList',
method: 'get',
params
})
}
export function getViewList(query) {
return request({
url: 'wcporderuser/queryViewList',
method: 'get',
params: query
})
}
export function updatePd(data) {
return request({
url: 'wcporderlistpd/updatePd',
method: 'get',
params: data
})
}
export function getDelList(query) {
return request({
url: '/wcporderlistpd/getDelList',
method: 'get',
params: query
})
}
export function delPd(data) {
return request({
url: '/wcporderlistpd/delPd',
method: 'get',
params: data
})
}
This diff is collapsed.
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</el-table-column> </el-table-column>
<el-table-column label="人员"> <el-table-column label="人员">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.user || '-' }}</span> <span>{{ scope.row.name || '-' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
<script> <script>
import { getInfo } from '@/api/login'
import { getUser } from '@/api/materialInventory'
export default { export default {
name: 'MaterialInventory', name: 'MaterialInventory',
data() { data() {
...@@ -37,37 +40,13 @@ export default { ...@@ -37,37 +40,13 @@ export default {
ptype: '', ptype: '',
dealStatus: '0' dealStatus: '0'
}, },
// 选中的下坐表 id: '',
actionIndex: null,
// 标签集合
tabList: [
{
type: null,
number: null
},
{
type: null,
number: null
},
{
type: null,
number: null
},
{
type: null,
number: null
},
{
type: null,
number: null
}
],
// 对应标签下的列表数据 // 对应标签下的列表数据
tableList: [{ orderSn: '20240809', user: '李四' }] tableList: []
} }
}, },
created() { created() {
// this.getTabList() this.getList()
}, },
methods: { methods: {
// 处理 // 处理
...@@ -78,9 +57,18 @@ export default { ...@@ -78,9 +57,18 @@ export default {
businessId: item.businessId businessId: item.businessId
} }
}) })
},
getList() {
getInfo().then(response => {
const data = {
businessId: response.data.user.businessId
}
getUser(data).then(res => {
this.tableList = res.data
})
})
} }
} }
} }
</script> </script>
......
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