Commit 3f2a35f6 authored by 沈翠玲's avatar 沈翠玲

排产相关

parent ae1e3387
...@@ -187,7 +187,14 @@ export function listByUser(query) { ...@@ -187,7 +187,14 @@ export function listByUser(query) {
params: query params: query
}) })
} }
// 查询工作单元,排除已绑定的
export function listByUserNoAssist(query) {
return request({
url: '/mes/md/workunitWorker/listByUserNoAssist',
method: 'get',
params: query
})
}
// 修改人工作单元 // 修改人工作单元
export function updateWorkunituserList(query) { export function updateWorkunituserList(query) {
return request({ return request({
......
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
@click="handleVirtualReporting" @click="handleVirtualReporting"
>虚拟报工</el-button> >虚拟报工</el-button>
</el-col> </el-col>
<!-- <el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="primary" type="primary"
plain plain
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
:disabled='single' :disabled='single'
@click="handleUnschedule" @click="handleUnschedule"
>取消排产</el-button> >取消排产</el-button>
</el-col> --> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
......
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<script> <script>
import { import {
getworkstationList} from '@/api/mes/pro/scheduleList' getworkstationList} from '@/api/mes/pro/scheduleList'
import { listByUser } from "@/api/system/user"; import { listByUserNoAssist } from "@/api/system/user";
export default { export default {
name: "WorkunitSelectSingle", name: "WorkunitSelectSingle",
components: {}, components: {},
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
/** 查询生产工单列表 */ /** 查询生产工单列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listByUser(this.queryParams).then((response) => { listByUserNoAssist(this.queryParams).then((response) => {
this.workunitList = response.rows; this.workunitList = response.rows;
this.loading = false; this.loading = false;
this.total = response.total this.total = response.total
......
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