|
@@ -159,7 +159,8 @@ export default {
|
|
|
posItemList: [],
|
|
posItemList: [],
|
|
|
roleItemList: [],
|
|
roleItemList: [],
|
|
|
userGroupItemList: [],
|
|
userGroupItemList: [],
|
|
|
- orgItem: {} // 组织全部信息
|
|
|
|
|
|
|
+ orgItem: {}, // 组织全部信息
|
|
|
|
|
+ wxyhId: ''
|
|
|
},
|
|
},
|
|
|
employee: {},
|
|
employee: {},
|
|
|
toolbars: [
|
|
toolbars: [
|
|
@@ -265,7 +266,7 @@ export default {
|
|
|
this.dialogLoading = false
|
|
this.dialogLoading = false
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- console.log(vo)
|
|
|
|
|
|
|
+
|
|
|
if (vo.roleVoList.length > 0) {
|
|
if (vo.roleVoList.length > 0) {
|
|
|
const list = []
|
|
const list = []
|
|
|
vo.roleVoList.forEach(item => {
|
|
vo.roleVoList.forEach(item => {
|
|
@@ -273,9 +274,13 @@ export default {
|
|
|
})
|
|
})
|
|
|
vo.user.job = list.join(',')
|
|
vo.user.job = list.join(',')
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if (this.formId) {
|
|
if (this.formId) {
|
|
|
update(vo).then(response => {
|
|
update(vo).then(response => {
|
|
|
this.dialogLoading = false
|
|
this.dialogLoading = false
|
|
|
|
|
+ if (this.wxyhId) {
|
|
|
|
|
+ this.updateWxyh()
|
|
|
|
|
+ }
|
|
|
this.$emit('dialog-callback', this)
|
|
this.$emit('dialog-callback', this)
|
|
|
ActionUtils.saveSuccessMessage(response.message, r => {
|
|
ActionUtils.saveSuccessMessage(response.message, r => {
|
|
|
// if (this.$utils.isEmpty(this.formId)) {
|
|
// if (this.$utils.isEmpty(this.formId)) {
|
|
@@ -350,6 +355,9 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.attrInfo.loadAttrData()
|
|
this.$refs.attrInfo.loadAttrData()
|
|
|
})
|
|
})
|
|
|
|
|
+ // 添加更新 t_wxyh 用于扫码签到
|
|
|
|
|
+ // if()
|
|
|
|
|
+ this.getWxyh(this.employee)
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
|
this.dialogLoading = false
|
|
this.dialogLoading = false
|
|
|
})
|
|
})
|
|
@@ -408,6 +416,38 @@ export default {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
return result
|
|
return result
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ // 更新扫码签到表的数据
|
|
|
|
|
+ getWxyh (data) {
|
|
|
|
|
+ const sql = `select * from t_wxyh where xing_ming_ = '${data.name}' and shou_ji_ = '${data.mobile}'`
|
|
|
|
|
+ this.$common.request('sql', sql).then(res => {
|
|
|
|
|
+ const { data = [] } = res.variables || {}
|
|
|
|
|
+ if (data.length > 0) {
|
|
|
|
|
+ this.wxyhId = data[0].id_
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ updateWxyh () {
|
|
|
|
|
+ const ryjbqkList = []
|
|
|
|
|
+ const obj = {
|
|
|
|
|
+ where: {
|
|
|
|
|
+ id_: this.wxyhId
|
|
|
|
|
+ },
|
|
|
|
|
+ param: {
|
|
|
|
|
+ xing_ming_: this.employee.name,
|
|
|
|
|
+ shou_ji_: this.employee.mobile
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ ryjbqkList.push(obj)
|
|
|
|
|
+
|
|
|
|
|
+ const params1 = {
|
|
|
|
|
+ tableName: 't_wxyh',
|
|
|
|
|
+ updList: ryjbqkList
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$common.request('update', params1
|
|
|
|
|
+ ).then(response => {
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|