Commit fd871ed8 authored by chenzj's avatar chenzj

生产报工的报工人员改成多选

parent f78ee80a
......@@ -44,12 +44,12 @@ export default {
tableSelectData: [],
tableColumn: [
{
type: 'radio',
type: 'selection',
width: 40
},
{
name: 'userName',
label: '号',
label: '号',
width: 160
},
{
......@@ -110,6 +110,7 @@ export default {
},
toggleRowSelection(checked, arr) {
this.tableSelectData = arr;
}
}
};
......
......@@ -1773,9 +1773,22 @@ export default {
// this.$u.toast('刀具校验通过!');
},
userDetermine() {
console.log(this.$refs.userPersonnelRef.tableSelectData, 'this.$refs.userPersonnelRef.tableSelectData');
this.usePersonData.nickName = this.$refs.userPersonnelRef.tableSelectData[0].nickName;
this.usePersonData.userName = this.$refs.userPersonnelRef.tableSelectData[0]?.userName;
let nick=null;
let user=null;
const tableSelectData = JSON.parse(JSON.stringify(this.$refs.userPersonnelRef.tableSelectData))
const a= tableSelectData.length - 1;
tableSelectData.forEach((item) =>{
if(item.nickName ===tableSelectData[a].nickName){
nick=nick+item.nickName;
user=user+item.userName;
}else{
nick=nick+item.nickName+",";
user=user+item.userName+",";
}
});
this.usePersonData.nickName = nick;
this.usePersonData.userName = user;
},
stopReasonSubmit() {
this.tableSelectData.forEach((item) => {
......
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