|
|
@@ -130,8 +130,11 @@ export default {
|
|
|
// 消息确认,受控文件用
|
|
|
confirmMsg() {
|
|
|
// TODO
|
|
|
+ const tn = this.tableName.slice(0, this.tableName.indexOf('('))
|
|
|
this.$confirm(
|
|
|
- '点击确认将在系统里“文件与记录”模块下的“受控文件查阅”查看到所通知文件的具体信息',
|
|
|
+ tn === 't_jjbdjb'
|
|
|
+ ? '点击确认将对在系统里“交接班登记”模块下该条数据进行接班确认'
|
|
|
+ : '点击确认将在系统里“文件与记录”模块下的“受控文件查阅”查看到所通知文件的具体信息',
|
|
|
'提示',
|
|
|
{
|
|
|
confirmButtonText: '确定',
|
|
|
@@ -184,12 +187,25 @@ export default {
|
|
|
que_ren_ri_qi_: this.$common.getDateNow(10),
|
|
|
que_ren_ren_xing_: name
|
|
|
}
|
|
|
+ const carryOnObj = {
|
|
|
+ id_: this.$utils.guid(),
|
|
|
+ parent_id_: this.tableId,
|
|
|
+ deng_ji_bu_men_: position,
|
|
|
+ jie_ban_ren_: JSON.stringify([
|
|
|
+ {
|
|
|
+ id: ryjbqkDatas[0].qian_zi_tu_wen_,
|
|
|
+ fileName: '确认签名'
|
|
|
+ }
|
|
|
+ ]),
|
|
|
+ deng_ji_shi_jian_: this.$common.getDateNow(16),
|
|
|
+ deng_ji_ren_: userId
|
|
|
+ }
|
|
|
const returnParams = {
|
|
|
tableName: this.tableName.slice(
|
|
|
0,
|
|
|
this.tableName.indexOf('(')
|
|
|
), // 字符串 "表名(发放时间)"
|
|
|
- paramWhere: [tempObj]
|
|
|
+ paramWhere: tn === 't_jjbdjb' ? [carryOnObj] : [tempObj]
|
|
|
}
|
|
|
// 获取所发放的文件
|
|
|
// const files = this.$refs.innerMessage.form.fileMsg
|
|
|
@@ -208,6 +224,25 @@ export default {
|
|
|
.request('add', returnParams)
|
|
|
.then(() => {
|
|
|
console.log('确认接收到发放文件')
|
|
|
+ if (tn === 't_jjbdjb') {
|
|
|
+ this.$common
|
|
|
+ .request('query', {
|
|
|
+ key: 'getComparisonBYjjbdjb',
|
|
|
+ params: [this.tableId]
|
|
|
+ })
|
|
|
+ .then((r) => {
|
|
|
+ let mid = r.variables.data[0]
|
|
|
+ if (mid.jie_ban_ren_.split(',').length === mid.znum) {
|
|
|
+ this.$common.request('updates', {
|
|
|
+ tableName: 't_jjbjlb',
|
|
|
+ paramWhere: [{ id_: this.tableId }],
|
|
|
+ paramCond: {
|
|
|
+ shi_fou_guo_shen_: '已完成'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.type = ''
|