|
|
@ -33,28 +33,28 @@
|
|
|
|
<el-table-column label="用户账号" prop="userName"></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="employeeName"></el-table-column>
|
|
|
|
<el-table-column label="备注" prop="remark"></el-table-column>
|
|
|
|
<el-table-column label="备注" prop="remark"></el-table-column>
|
|
|
|
<el-table-column label="操作" fixed="right" width="100">
|
|
|
|
<!--<el-table-column label="操作" fixed="right" width="100">-->
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
<!--<el-button-->
|
|
|
|
<!-- <!–<el-button–>-->
|
|
|
|
<!-- type="text"-->
|
|
|
|
<!-- <!– type="text"–>-->
|
|
|
|
<!-- size="small"-->
|
|
|
|
<!-- <!– size="small"–>-->
|
|
|
|
<!-- @click.native.stop="printLabel(scope.row)"-->
|
|
|
|
<!-- <!– @click.native.stop="printLabel(scope.row)"–>-->
|
|
|
|
<!-->打印-->
|
|
|
|
<!-- <!–>打印–>-->
|
|
|
|
<!--</el-button>-->
|
|
|
|
<!-- <!–</el-button>–>-->
|
|
|
|
<el-button
|
|
|
|
<!-- <!–<el-button–>-->
|
|
|
|
type="text"
|
|
|
|
<!-- <!– type="text"–>-->
|
|
|
|
size="small"
|
|
|
|
<!-- <!– size="small"–>-->
|
|
|
|
@click.native.stop="editCollectionPoints(scope.row)"
|
|
|
|
<!-- <!– @click.native.stop="editCollectionPoints(scope.row)"–>-->
|
|
|
|
>编辑
|
|
|
|
<!-- <!–>详情–>-->
|
|
|
|
</el-button>
|
|
|
|
<!-- <!–</el-button>–>-->
|
|
|
|
<el-button
|
|
|
|
<!-- <!–<el-button–>-->
|
|
|
|
type="text"
|
|
|
|
<!-- <!– type="text"–>-->
|
|
|
|
size="small"
|
|
|
|
<!-- <!– size="small"–>-->
|
|
|
|
@click.native.stop="deleteCollectionPoints(scope.row)"
|
|
|
|
<!-- <!– @click.native.stop="deleteCollectionPoints(scope.row)"–>-->
|
|
|
|
>删除
|
|
|
|
<!-- <!–>删除–>-->
|
|
|
|
</el-button>
|
|
|
|
<!-- <!–</el-button>–>-->
|
|
|
|
</template>
|
|
|
|
<!-- </template>-->
|
|
|
|
</el-table-column>
|
|
|
|
<!--</el-table-column>-->
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -121,6 +121,7 @@
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
@click="workDetail(scope.row)"
|
|
|
|
>详情
|
|
|
|
>详情
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
@ -134,6 +135,7 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
|
|
|
</el-tabs>
|
|
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
@ -151,6 +153,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
</selectWorkplace>
|
|
|
|
</selectWorkplace>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
title="工位详情"
|
|
|
|
|
|
|
|
:visible.sync="addWorkplaceDialogVisible"
|
|
|
|
|
|
|
|
width="60%"
|
|
|
|
|
|
|
|
v-if="addWorkplaceDialogVisible"
|
|
|
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-form :model="formData" style="width: 80%;" ref="dataForm" :rules="formRules"
|
|
|
|
|
|
|
|
label-width="auto"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-row :gutter="24" class="el-row">
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="工位编码:" prop="workplaceId" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
v-model="formData.workplaceId" style="width: 100%"
|
|
|
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="工位名称:" prop="workplaceName" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
v-model="formData.workplaceName" style="width: 100%"
|
|
|
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="24" class="el-row">
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="作业方式:" prop="operationType" class="query-form-item">
|
|
|
|
|
|
|
|
<el-select v-model="formData.operationType" style="width: 100%" placeholder="选择扫码方式" clearable disabled>
|
|
|
|
|
|
|
|
<el-option label="扫码生成业务单(必须插入)" :value="1"></el-option>
|
|
|
|
|
|
|
|
<el-option label="按单校验三期(是否插入可选" :value="2"></el-option>
|
|
|
|
|
|
|
|
<el-option label="按单不校验三期(是否插入可选" :value="3"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="结果处理:" prop="checkInsert" class="query-form-item">
|
|
|
|
|
|
|
|
<el-select v-model="formData.checkInsert" style="width: 100%" placeholder="选择扫码方式" clearable disabled>
|
|
|
|
|
|
|
|
<el-option label="不插入" :value="1"></el-option>
|
|
|
|
|
|
|
|
<el-option label="插入" :value="2"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="24" class="el-row">
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="提醒方式:" prop="warnType" class="query-form-item">
|
|
|
|
|
|
|
|
<el-select v-model="formData.warnType" style="width: 100%" placeholder="选择扫码方式" clearable disabled>
|
|
|
|
|
|
|
|
<el-option label="信息提醒" :value="1"></el-option>
|
|
|
|
|
|
|
|
<el-option label="禁止录入" :value="2"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="往来类型标题:" prop="remake" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
v-model="formData.unitTittle" style="width: 100%"
|
|
|
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--<el-col :span="24" class="el-col">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item label="所属仓库:" prop="invCode" class="query-form-item">-->
|
|
|
|
|
|
|
|
<!-- <el-select v-model="formData.invCode" placeholder="请选择所属仓库"-->
|
|
|
|
|
|
|
|
<!-- style="width: 80%"-->
|
|
|
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
|
|
|
<!-- @change="handleInvChange"-->
|
|
|
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
|
|
|
<!-- v-for="item in invList"-->
|
|
|
|
|
|
|
|
<!-- :key="item.name"-->
|
|
|
|
|
|
|
|
<!-- :label="item.name"-->
|
|
|
|
|
|
|
|
<!-- :value="item.code"-->
|
|
|
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- <span style="float: left">{{ item.name }}</span>-->
|
|
|
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="工位负责人:" prop="chargeUser" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
v-model="formData.employeeName" style="width: 100%"
|
|
|
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="作业方式:" prop="chargeUser" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
v-model="operationTypes[formData.operationType]" style="width: 100%"
|
|
|
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<!--<el-col :span="24" class="el-col">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item label="单据类型:" prop="busType" class="query-form-item">-->
|
|
|
|
|
|
|
|
<!-- <el-select v-model="formData.orderId" placeholder="请选择单据类型"-->
|
|
|
|
|
|
|
|
<!-- style="width: 80%"-->
|
|
|
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
|
|
|
<!-- v-for="item in busTypes"-->
|
|
|
|
|
|
|
|
<!-- :key="item.name"-->
|
|
|
|
|
|
|
|
<!-- :label="item.name"-->
|
|
|
|
|
|
|
|
<!-- :value="item.code"-->
|
|
|
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- <span style="float: left">{{ item.name }}</span>-->
|
|
|
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
|
|
|
<!--<el-col :span="24" class="el-col">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item label="所属组别:" prop="grouping" class="query-form-item">-->
|
|
|
|
|
|
|
|
<!-- <el-select v-model="formData.constituencies" placeholder="请选择所属组别"-->
|
|
|
|
|
|
|
|
<!-- style="width: 80%"-->
|
|
|
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
|
|
|
<!-- v-for="item in fromDeptOptions"-->
|
|
|
|
|
|
|
|
<!-- :key="item.code"-->
|
|
|
|
|
|
|
|
<!-- :label="item.label"-->
|
|
|
|
|
|
|
|
<!-- :value="item.code"-->
|
|
|
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- <span style="float: left">{{ item.label }}</span>-->
|
|
|
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="备注:" prop="unitTittle" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
v-model="formData.remake" style="width: 100%"
|
|
|
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -191,7 +357,10 @@ export default {
|
|
|
|
1: '信息提醒',
|
|
|
|
1: '信息提醒',
|
|
|
|
2: '禁止录入'
|
|
|
|
2: '禁止录入'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
userId: ''
|
|
|
|
userId: '',
|
|
|
|
|
|
|
|
addWorkplaceDialogVisible: false,
|
|
|
|
|
|
|
|
formData: null,
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
@ -213,11 +382,17 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onUserReset() {
|
|
|
|
onUserReset() {
|
|
|
|
this.workQuery = {}
|
|
|
|
this.workQuery = {}
|
|
|
|
|
|
|
|
let query = {
|
|
|
|
|
|
|
|
userId: this.rowData.id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getUserBindWork(query)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
loadWorkList() {
|
|
|
|
loadWorkList() {
|
|
|
|
// if (this.rowData.id == null){
|
|
|
|
let query = {
|
|
|
|
// return this.$message.error("请先选择用户")
|
|
|
|
userId: this.rowData.id,
|
|
|
|
// }
|
|
|
|
workKey:this.workQuery.key
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getUserBindWork(query)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getUsers() {
|
|
|
|
getUsers() {
|
|
|
|
getUsers(this.userQuery).then(res => {
|
|
|
|
getUsers(this.userQuery).then(res => {
|
|
|
@ -233,6 +408,9 @@ export default {
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|
userId: row.id
|
|
|
|
userId: row.id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getUserBindWork(query)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
getUserBindWork(query){
|
|
|
|
getUserBindWork(query).then(res => {
|
|
|
|
getUserBindWork(query).then(res => {
|
|
|
|
if (res.code == 20000) {
|
|
|
|
if (res.code == 20000) {
|
|
|
|
this.workList = res.data || []
|
|
|
|
this.workList = res.data || []
|
|
|
@ -281,6 +459,10 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
workDetail(row){
|
|
|
|
|
|
|
|
this.formData = row
|
|
|
|
|
|
|
|
this.addWorkplaceDialogVisible = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|