|
@@ -129,8 +129,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 消息确认,受控文件用
|
|
// 消息确认,受控文件用
|
|
|
confirmMsg () {
|
|
confirmMsg () {
|
|
|
- console.log('1111111111')
|
|
|
|
|
- // TODO
|
|
|
|
|
this.$confirm('点击确认将在系统信息管理模块查看到所通知文件的具体信息', '提示', {
|
|
this.$confirm('点击确认将在系统信息管理模块查看到所通知文件的具体信息', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
@@ -138,26 +136,26 @@ export default {
|
|
|
showClose: false,
|
|
showClose: false,
|
|
|
closeOnClickModal: false
|
|
closeOnClickModal: false
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
- // TODO 受控文件逻辑处理
|
|
|
|
|
- const perInfosId = this.$store.getters.userInfo.user.id
|
|
|
|
|
|
|
+ const personId = this.$store.getters.userInfo.user.id
|
|
|
const perInfosOrg = this.$store.getters.userInfo.org
|
|
const perInfosOrg = this.$store.getters.userInfo.org
|
|
|
if (!perInfosOrg) {
|
|
if (!perInfosOrg) {
|
|
|
alert('系统所登录的账户并没有所属部门,请先在系统设置完再进行确认!')
|
|
alert('系统所登录的账户并没有所属部门,请先在系统设置完再进行确认!')
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
// 判断签字图文是否存在
|
|
// 判断签字图文是否存在
|
|
|
- const sql1 = "select qian_zi_tu_wen_ FROM t_ryjbqk WHERE parent_id_ = '" + perInfosId + "'"
|
|
|
|
|
|
|
+ const sql1 = `select qian_zi_tu_wen_ FROM t_ryjbqk WHERE parent_id_ = '${personId}'`
|
|
|
// 判断是否已经点击过确认
|
|
// 判断是否已经点击过确认
|
|
|
- const sql2 = `select id_ FROM ibps_msg_read WHERE msg_id_ = '${this.id}' and receiver_id_='${perInfosId}'`
|
|
|
|
|
- console.log('perInfosId', perInfosId)
|
|
|
|
|
|
|
+ const sql2 = `select id_ FROM ibps_msg_read WHERE msg_id_ = '${this.id}' and receiver_id_='${personId}'`
|
|
|
|
|
+ console.log('employeeId:', personId)
|
|
|
|
|
+ console.log(this.tableName)
|
|
|
Promise.all([curdPost('sql', sql1), curdPost('sql', sql2)]).then((res) => {
|
|
Promise.all([curdPost('sql', sql1), curdPost('sql', sql2)]).then((res) => {
|
|
|
const ryjbqkDatas = res[0].variables.data
|
|
const ryjbqkDatas = res[0].variables.data
|
|
|
- const cont2 = res[1].variables.data
|
|
|
|
|
|
|
+ const confirmRecord = res[1].variables.data
|
|
|
if (!ryjbqkDatas.length) {
|
|
if (!ryjbqkDatas.length) {
|
|
|
alert('系统所登录的账户并没有签字图文在系统,请先上传系统再进行确认!')
|
|
alert('系统所登录的账户并没有签字图文在系统,请先上传系统再进行确认!')
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- if (!cont2.length) {
|
|
|
|
|
|
|
+ if (!confirmRecord.length) {
|
|
|
const tempObj = {
|
|
const tempObj = {
|
|
|
id_: generateUUID(),
|
|
id_: generateUUID(),
|
|
|
parent_id_: this.tableId,
|
|
parent_id_: this.tableId,
|