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 @@
</el-table-column>
<el-table-column label="人员">
<template slot-scope="scope">
<span>{{ scope.row.user || '-' }}</span>
<span>{{ scope.row.name || '-' }}</span>
</template>
</el-table-column>
<el-table-column label="操作">
......@@ -25,6 +25,9 @@
<script>
import { getInfo } from '@/api/login'
import { getUser } from '@/api/materialInventory'
export default {
name: 'MaterialInventory',
data() {
......@@ -37,37 +40,13 @@ export default {
ptype: '',
dealStatus: '0'
},
// 选中的下坐表
actionIndex: null,
// 标签集合
tabList: [
{
type: null,
number: null
},
{
type: null,
number: null
},
{
type: null,
number: null
},
{
type: null,
number: null
},
{
type: null,
number: null
}
],
id: '',
// 对应标签下的列表数据
tableList: [{ orderSn: '20240809', user: '李四' }]
tableList: []
}
},
created() {
// this.getTabList()
this.getList()
},
methods: {
// 处理
......@@ -78,9 +57,18 @@ export default {
businessId: item.businessId
}
})
},
getList() {
getInfo().then(response => {
const data = {
businessId: response.data.user.businessId
}
getUser(data).then(res => {
this.tableList = res.data
})
})
}
}
}
</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