|
|
@ -20,13 +20,14 @@
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
style="margin-left: 10px"
|
|
|
|
style="margin-left: 10px"
|
|
|
|
:disabled="data.parentCode != null"
|
|
|
|
v-if="data.parentCode == null"
|
|
|
|
@click="() => append(data,'add')">
|
|
|
|
@click="() => append(data,'add')">
|
|
|
|
新增
|
|
|
|
新增
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
:disabled="data.parentCode == null"
|
|
|
|
:disabled="data.parentCode == null"
|
|
|
|
@click="() => append(data, 'edit')">
|
|
|
|
@click="() => append(data, 'edit')">
|
|
|
|
编辑
|
|
|
|
编辑
|
|
|
@ -152,6 +153,38 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="userLoading" :data="userList" style="width: 100%;margin-top: 30px;margin-bottom: 10px" :row-style="{height: '32px' }" v-if="rowData != null"
|
|
|
|
|
|
|
|
highlight-current-row
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-table-column type="index" label="序号"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="用户账号" prop="userName"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="用名称" prop="employeeName"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="备注" prop="remark"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="操作" fixed="right" width="100">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<!--<el-button-->
|
|
|
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
|
|
|
<!-- @click.native.stop="printLabel(scope.row)"-->
|
|
|
|
|
|
|
|
<!-->打印-->
|
|
|
|
|
|
|
|
<!--</el-button>-->
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
@click.native.stop="editCollectionPoints(scope.row)"
|
|
|
|
|
|
|
|
>详情
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
@click.native.stop="removeUser(scope.row)"
|
|
|
|
|
|
|
|
>移除
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -189,7 +222,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
<el-form-item label="作业方式:" prop="scanType" class="query-form-item">
|
|
|
|
<el-form-item label="作业方式:" prop="operationType" class="query-form-item">
|
|
|
|
<el-select v-model="formData.operationType" style="width: 80%" placeholder="选择扫码方式" clearable>
|
|
|
|
<el-select v-model="formData.operationType" style="width: 80%" placeholder="选择扫码方式" clearable>
|
|
|
|
<el-option label="扫码生成业务单(必须插入)" :value="1"></el-option>
|
|
|
|
<el-option label="扫码生成业务单(必须插入)" :value="1"></el-option>
|
|
|
|
<el-option label="按单校验三期(是否插入可选" :value="2"></el-option>
|
|
|
|
<el-option label="按单校验三期(是否插入可选" :value="2"></el-option>
|
|
|
@ -200,7 +233,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
<el-form-item label="结果处理:" prop="scanType" class="query-form-item">
|
|
|
|
<el-form-item label="结果处理:" prop="checkInsert" class="query-form-item">
|
|
|
|
<el-select v-model="formData.checkInsert" style="width: 80%" placeholder="选择扫码方式" clearable>
|
|
|
|
<el-select v-model="formData.checkInsert" style="width: 80%" placeholder="选择扫码方式" clearable>
|
|
|
|
<el-option label="不插入" :value="1"></el-option>
|
|
|
|
<el-option label="不插入" :value="1"></el-option>
|
|
|
|
<el-option label="插入" :value="2"></el-option>
|
|
|
|
<el-option label="插入" :value="2"></el-option>
|
|
|
@ -209,7 +242,7 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
<el-form-item label="提醒方式:" prop="scanType" class="query-form-item">
|
|
|
|
<el-form-item label="提醒方式:" prop="warnType" class="query-form-item">
|
|
|
|
<el-select v-model="formData.warnType" style="width: 80%" placeholder="选择扫码方式" clearable>
|
|
|
|
<el-select v-model="formData.warnType" style="width: 80%" placeholder="选择扫码方式" clearable>
|
|
|
|
<el-option label="信息提醒" :value="1"></el-option>
|
|
|
|
<el-option label="信息提醒" :value="1"></el-option>
|
|
|
|
<el-option label="禁止录入" :value="2"></el-option>
|
|
|
|
<el-option label="禁止录入" :value="2"></el-option>
|
|
|
@ -218,7 +251,7 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
<el-form-item label="所属仓库:" prop="busType" class="query-form-item">
|
|
|
|
<el-form-item label="所属仓库:" prop="invCode" class="query-form-item">
|
|
|
|
<el-select v-model="formData.invCode" placeholder="请选择所属仓库"
|
|
|
|
<el-select v-model="formData.invCode" placeholder="请选择所属仓库"
|
|
|
|
style="width: 80%"
|
|
|
|
style="width: 80%"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
@ -337,6 +370,7 @@ import { getInvListByUser } from '@/api/system/invWarehouse'
|
|
|
|
import { getTree } from '@/api/basic/collectPoint/collectPointManage'
|
|
|
|
import { getTree } from '@/api/basic/collectPoint/collectPointManage'
|
|
|
|
import { getCollectBusType } from '@/api/basic/collectPoint/gatherOrderType'
|
|
|
|
import { getCollectBusType } from '@/api/basic/collectPoint/gatherOrderType'
|
|
|
|
import panelGroup from '@/views/dashboard/PanelGroup'
|
|
|
|
import panelGroup from '@/views/dashboard/PanelGroup'
|
|
|
|
|
|
|
|
import { delUserBindWork, getUserBindWork } from '@/api/basic/collectPoint/userWorkplace'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
@ -368,12 +402,21 @@ export default {
|
|
|
|
workplaceName: [
|
|
|
|
workplaceName: [
|
|
|
|
{ required: true, message: '请输入工位名称', trigger: 'blur' }
|
|
|
|
{ required: true, message: '请输入工位名称', trigger: 'blur' }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
operationType: [
|
|
|
|
|
|
|
|
{ required: true, message: '请选择作业方式', trigger: 'blur' }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
checkInsert: [
|
|
|
|
|
|
|
|
{ required: true, message: '处理结果是否插入', trigger: 'blur' }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
warnType: [
|
|
|
|
|
|
|
|
{ required: true, message: '提醒方式', trigger: 'blur' }
|
|
|
|
|
|
|
|
],
|
|
|
|
invCode: [
|
|
|
|
invCode: [
|
|
|
|
{ required: true, message: '请选择仓库', trigger: 'blur' }
|
|
|
|
{ required: true, message: '请选择仓库', trigger: 'blur' }
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
invQuery: {
|
|
|
|
invQuery: {
|
|
|
|
code: ''
|
|
|
|
invCode: ''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
users: [],
|
|
|
|
users: [],
|
|
|
|
busTypes: [],
|
|
|
|
busTypes: [],
|
|
|
@ -390,6 +433,9 @@ export default {
|
|
|
|
1: '信息提醒',
|
|
|
|
1: '信息提醒',
|
|
|
|
2: '禁止录入',
|
|
|
|
2: '禁止录入',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
userList: [],
|
|
|
|
|
|
|
|
userLoading: false,
|
|
|
|
|
|
|
|
rowData: null,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
@ -527,7 +573,7 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleInvChange(invCode) {
|
|
|
|
handleInvChange(invCode) {
|
|
|
|
this.invQuery.code = invCode
|
|
|
|
this.invQuery.invCode = invCode
|
|
|
|
getUsers(this.invQuery).then(res => {
|
|
|
|
getUsers(this.invQuery).then(res => {
|
|
|
|
if (res.code == 20000) {
|
|
|
|
if (res.code == 20000) {
|
|
|
|
this.users = res.data || []
|
|
|
|
this.users = res.data || []
|
|
|
@ -579,16 +625,55 @@ export default {
|
|
|
|
var treeList = response.data || []
|
|
|
|
var treeList = response.data || []
|
|
|
|
const filteredList = treeList.filter(item => item.parentCode != null)
|
|
|
|
const filteredList = treeList.filter(item => item.parentCode != null)
|
|
|
|
this.fromDeptOptions = filteredList
|
|
|
|
this.fromDeptOptions = filteredList
|
|
|
|
console.log('jjsjsjsj', this.fromDeptOptions)
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handCurrentChange(row){
|
|
|
|
handCurrentChange(row){
|
|
|
|
console.log(row)
|
|
|
|
this.rowData = row
|
|
|
|
|
|
|
|
let query = {
|
|
|
|
|
|
|
|
workplaceId: row.workplaceId
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getUserBindWork(query)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
getUserBindWork(query){
|
|
|
|
|
|
|
|
getUserBindWork(query).then(res => {
|
|
|
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
|
|
|
this.userList = res.data || []
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error('获取失败')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
removeUser(row) {
|
|
|
|
|
|
|
|
this.$confirm('确定移除该用户?', '提示', {
|
|
|
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
let query = {
|
|
|
|
|
|
|
|
id : row.id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
delUserBindWork(query).then(res => {
|
|
|
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
|
|
|
let query = {
|
|
|
|
|
|
|
|
workplaceId: this.rowData.workplaceId
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getUserBindWork(query)
|
|
|
|
|
|
|
|
this.$message.success('移除成功')
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleNodeClick(row){
|
|
|
|
handleNodeClick(row){
|
|
|
|
this.query.code = row.code
|
|
|
|
this.query.code = row.code
|
|
|
|
|
|
|
|
if (this.query.code == 1001){
|
|
|
|
|
|
|
|
this.query.code = null
|
|
|
|
|
|
|
|
}
|
|
|
|
this.getList()
|
|
|
|
this.getList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|