基础信息班组

master
A0010407 1 year ago
parent c89e192f1d
commit 5eb3fc5d66

@ -87,8 +87,8 @@
</template>
</el-table-column>
<el-table-column label="所属产线" align="center" prop="productionLineCode" />
<el-table-column label="负责人" align="center" prop="teamLeaderName" />
<el-table-column label="班组组成人员" align="center" prop="teamMembers" />
<el-table-column label="班组负责人" align="center" prop="teamLeaderName" />
<!-- <el-table-column label="班组组成人员" align="center" prop="teamMembers" /> -->
<el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column label="创建时间" align="center" prop="createDate" />
<el-table-column prop="active" label="是否启用" align="center">
@ -216,6 +216,22 @@
</el-col>
</el-row>
</el-form>
<!-- <el-divider></el-divider>
<el-card>
<div style="text-align: center">
<template>
<el-transfer
filterable
filter-placeholder="请输入班组人员名称"
:titles="['可选班组人员', '当前班组人员']"
:data="leftList"
v-model="rightList"
style="text-align: left"
>
</el-transfer>
</template>
</div>
</el-card> -->
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
@ -225,7 +241,7 @@
</template>
<script>
import { listTeam, getTeam, delTeam, addTeam, updateTeam } from "@/api/wms/team";
import { listTeam, getTeam, delTeam, addTeam, updateTeam ,listTeamMembers} from "@/api/wms/team";
export default {
name: "Team",
@ -246,6 +262,11 @@ export default {
total: 0,
//
teamList: [],
teamMembersList:[],
// //
// leftList: [],
// // key
// rightList: [],
//
title: "",
//
@ -302,12 +323,31 @@ export default {
},
created() {
this.getList();
this.getTeamMembers();
},
methods: {
//
indexMethod(index) {
return index + 1;
},
// getTeamMembers() {
// //
// listTeamMembers(this.queryParams).then(response => {
// for(let i in response.rows){
// // 穿
// this.leftList.push({
// key: response.rows[i].userId,
// label: response.rows[i].userName
// })
// }
// for(let i in response.selected){
// // 穿
// this.rightList.push(response.selected[i].key);
// this.form.rightData = this.rightList;
// }
// this.loading = false;
// });
// },
/** 查询班组列表 */
getList() {
this.loading = true;
@ -348,6 +388,7 @@ export default {
teamProperties: null,
attendanceQuantity: null,
assignedQuantity: null
// rightData: null
};
this.resetForm("form");
},
@ -388,7 +429,9 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.teamId != null) {
this.form.rightData = this.rightList;
updateTeam(this.form).then(response => {
console.log("打印1",this.rightList,"打印2",this.form.rightData);
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();

Loading…
Cancel
Save