|
|
@ -71,11 +71,25 @@
|
|
|
|
<el-form :model="query" label-width="auto" v-show="showSearch" size="mini" class="order-el-form">
|
|
|
|
<el-form :model="query" label-width="auto" v-show="showSearch" size="mini" class="order-el-form">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="当前部门:" class="query-form-item">
|
|
|
|
<el-form-item label="当前部门:" class="query-form-item">
|
|
|
|
<deptSelect style="width: 80%" :value.sync="query.deptCode"/>
|
|
|
|
<el-select v-model="query.deptCode" class="width-full" placeholder="请选择" filterable clearable
|
|
|
|
<!--<deptSelect :value.sync="query.invCode" :params.sync="filterBadInv" :changeValue.sync="invChange"/>-->
|
|
|
|
@change="changeDept" style="width: 80%"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option v-for="item in DeptList" :key="item.id" :label="item.name" :value="item.code"/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
<!--<el-option v-for="item in " :key="item.id" :label="item.name" :value="item.code"/>-->
|
|
|
|
|
|
|
|
<!-- <deptSelect :value.sync="userQuery.deptCode"-->
|
|
|
|
|
|
|
|
<!-- :changeValue.sync="changeUsers"/>-->
|
|
|
|
|
|
|
|
<!-- <!–<deptSelect :value.sync="query.invCode" :params.sync="filterBadInv" :changeValue.sync="invChange"/>–>-->
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<!--<el-col :span="8">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item label="当前部门:" class="query-form-item">-->
|
|
|
|
|
|
|
|
<!-- <deptSelect style="width: 80%" :value.sync="query.deptCode"/>-->
|
|
|
|
|
|
|
|
<!-- <!–<deptSelect :value.sync="query.invCode" :params.sync="filterBadInv" :changeValue.sync="invChange"/>–>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="编码/名称:" class="query-form-item">
|
|
|
|
<el-form-item label="编码/名称:" class="query-form-item">
|
|
|
|
<el-input v-model="query.key" placeholder="请输入编码/工位名称" clearable style="width: 80%">
|
|
|
|
<el-input v-model="query.key" placeholder="请输入编码/工位名称" clearable style="width: 80%">
|
|
|
@ -888,7 +902,8 @@ export default {
|
|
|
|
busTypeTotal: 0,
|
|
|
|
busTypeTotal: 0,
|
|
|
|
busTypeCodes: [],
|
|
|
|
busTypeCodes: [],
|
|
|
|
busData: null,
|
|
|
|
busData: null,
|
|
|
|
upData: null
|
|
|
|
upData: null,
|
|
|
|
|
|
|
|
DeptList: []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {},
|
|
|
|
computed: {},
|
|
|
@ -1154,6 +1169,9 @@ export default {
|
|
|
|
this.getWorkBindBusTypes()
|
|
|
|
this.getWorkBindBusTypes()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
loadUserList() {
|
|
|
|
loadUserList() {
|
|
|
|
|
|
|
|
if (this.rowData.workplaceId == null) {
|
|
|
|
|
|
|
|
return this.$message.error('请先选择工位')
|
|
|
|
|
|
|
|
}
|
|
|
|
this.userQuery.workplaceCode = this.rowData.workplaceId
|
|
|
|
this.userQuery.workplaceCode = this.rowData.workplaceId
|
|
|
|
this.getUserBindWork(this.userQuery)
|
|
|
|
this.getUserBindWork(this.userQuery)
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1167,6 +1185,9 @@ export default {
|
|
|
|
this.getWorkBindBusTypes()
|
|
|
|
this.getWorkBindBusTypes()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
loadBusList() {
|
|
|
|
loadBusList() {
|
|
|
|
|
|
|
|
if (this.rowData.workplaceId == null) {
|
|
|
|
|
|
|
|
return this.$message.error('请先选择工位')
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getWorkBindBusTypes()
|
|
|
|
this.getWorkBindBusTypes()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
chooseBusType() {
|
|
|
|
chooseBusType() {
|
|
|
@ -1307,6 +1328,17 @@ export default {
|
|
|
|
// .catch(() => {
|
|
|
|
// .catch(() => {
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
|
|
|
|
getDepts() {
|
|
|
|
|
|
|
|
let data =
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
enable: true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
filterList(data).then(res => {
|
|
|
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
|
|
|
this.DeptList = res.data.list || []
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
deptChange() {
|
|
|
|
deptChange() {
|
|
|
|
this.getInvList()
|
|
|
|
this.getInvList()
|
|
|
|
this.formData.invCode = ''
|
|
|
|
this.formData.invCode = ''
|
|
|
@ -1355,6 +1387,9 @@ export default {
|
|
|
|
closeDialog() {
|
|
|
|
closeDialog() {
|
|
|
|
this.chooseBusTypeDialogVisible = false
|
|
|
|
this.chooseBusTypeDialogVisible = false
|
|
|
|
this.getWorkBindBusTypes()
|
|
|
|
this.getWorkBindBusTypes()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
changeDept(){
|
|
|
|
|
|
|
|
this.getList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -1364,6 +1399,7 @@ export default {
|
|
|
|
this.getTree()
|
|
|
|
this.getTree()
|
|
|
|
this.getLstTree()
|
|
|
|
this.getLstTree()
|
|
|
|
this.getDeptList()
|
|
|
|
this.getDeptList()
|
|
|
|
|
|
|
|
this.getDepts()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|