|
|
@@ -2847,10 +2847,11 @@ const getbzyg = async (value,key) => {
|
|
|
let bzxm=''
|
|
|
bzxm=`name${key}`
|
|
|
const response = await getYg({sczl_bh:formDatas.value[bzyg]});
|
|
|
+ console.log(response)
|
|
|
if (response.code === 0) {
|
|
|
if(response.data.length === 1){
|
|
|
- formDatas.value[bzxm]=response.data[0].ygxm
|
|
|
- formDatas.value[bzyg]=response.data[0].员工编号
|
|
|
+ formDatas.value[bzxm]= response.data[0].ygxm
|
|
|
+ formDatas.value[bzyg]= response.data[0].员工编号
|
|
|
}else{
|
|
|
blModel.value = true;
|
|
|
console.log(response.data)
|
|
|
@@ -2874,8 +2875,8 @@ const tablebllickHandler = async (row, column, event) => {
|
|
|
}
|
|
|
}
|
|
|
// 将选定的值分配给下一个空的代码和名称字段
|
|
|
- formDatas.value[`code${nextIndex}`] = row.ygxm;
|
|
|
- formDatas.value[`name${nextIndex}`] = row.员工编号;
|
|
|
+ formDatas.value[`code${nextIndex}`] = row.员工编号;
|
|
|
+ formDatas.value[`name${nextIndex}`] = row.ygxm;
|
|
|
blModel.value = false;
|
|
|
|
|
|
clicked.value = true;
|
|
|
@@ -4619,8 +4620,10 @@ const addBz = async() => {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+//更新班组
|
|
|
const selectBz = async() => {
|
|
|
+
|
|
|
+ console.log(currentBz.value)
|
|
|
if(currentBz.value){
|
|
|
BZMC.value=currentBz.value.班组号
|
|
|
let sczl_bhkey=''
|
|
|
@@ -4691,6 +4694,7 @@ const selectBz = async() => {
|
|
|
team_id:currentBz.value.ID
|
|
|
})
|
|
|
if(response.code===0){
|
|
|
+ detailShow.value = false
|
|
|
ElMessage({
|
|
|
type: 'success',
|
|
|
message: '成功'
|