|
@@ -485,23 +485,7 @@ export default {
|
|
|
const { variables: { data }} = await this.$common.request('sql', sql)
|
|
const { variables: { data }} = await this.$common.request('sql', sql)
|
|
|
const submitNum = new Set(data.map(item => item.bian_zhi_ren_)).size
|
|
const submitNum = new Set(data.map(item => item.bian_zhi_ren_)).size
|
|
|
if (submitNum === pinGuRenNum && data.every(item => item.shi_fou_guo_shen_ === '已完成')) {
|
|
if (submitNum === pinGuRenNum && data.every(item => item.shi_fou_guo_shen_ === '已完成')) {
|
|
|
- // 0.生成快照
|
|
|
|
|
- const formName = '风险管理/风险识别评估表V2.rpx'
|
|
|
|
|
- const res = await this.$common.snapshoot({
|
|
|
|
|
- url: this.$getReportFile(formName, this.getReportParams(formName, this.params.id_, {
|
|
|
|
|
- ...this.preParams,
|
|
|
|
|
- shi_fou_guo_shen_: '已完成'
|
|
|
|
|
- })),
|
|
|
|
|
- name: this.params.id_,
|
|
|
|
|
- type: 'pdf'
|
|
|
|
|
- })
|
|
|
|
|
- console.log(res)
|
|
|
|
|
- if (!res.data || !res.data.id) {
|
|
|
|
|
- console.log('快照生成失败')
|
|
|
|
|
- } else {
|
|
|
|
|
- console.log('快照生成成功')
|
|
|
|
|
- }
|
|
|
|
|
- // 1.修改状态为已完成 并保存快照
|
|
|
|
|
|
|
+ // 1.修改状态为已完成
|
|
|
const updateParamsRecord = {
|
|
const updateParamsRecord = {
|
|
|
tableName: 't_fxpgjlb2',
|
|
tableName: 't_fxpgjlb2',
|
|
|
updList: [{
|
|
updList: [{
|
|
@@ -509,8 +493,7 @@ export default {
|
|
|
id_: this.params.id_
|
|
id_: this.params.id_
|
|
|
},
|
|
},
|
|
|
param: {
|
|
param: {
|
|
|
- shi_fou_guo_shen_: '已完成',
|
|
|
|
|
- kuai_zhao_: res.data.id
|
|
|
|
|
|
|
+ shi_fou_guo_shen_: '已完成'
|
|
|
}
|
|
}
|
|
|
}]
|
|
}]
|
|
|
}
|
|
}
|