|
@@ -375,6 +375,7 @@ export default {
|
|
|
default:
|
|
default:
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if (this.infoNumArr.length === 4) {
|
|
if (this.infoNumArr.length === 4) {
|
|
|
if (this.btnType === 'submit') {
|
|
if (this.btnType === 'submit') {
|
|
|
startFlow({
|
|
startFlow({
|
|
@@ -494,7 +495,21 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
saveData(val, r) {
|
|
saveData(val, r) {
|
|
|
- setInfo(val).then((res) => {
|
|
|
|
|
|
|
+ setInfo(val).then(async (res) => {
|
|
|
|
|
+ if (this.$attrs.params.attrs.flow * 1 === 3) {
|
|
|
|
|
+ let photo = await this.createSnapshoot(this.userId)
|
|
|
|
|
+ // 字段需要继续添加
|
|
|
|
|
+ const addParams = {
|
|
|
|
|
+ tableName: 't_rydakzb',
|
|
|
|
|
+ paramWhere: [
|
|
|
|
|
+ {
|
|
|
|
|
+ bian_zhi_ren_: this.userId,
|
|
|
|
|
+ kuai_zhao_: photo
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
|
|
+ await this.$common.request('add', addParams)
|
|
|
|
|
+ }
|
|
|
if (r !== 'saveWorkflow') {
|
|
if (r !== 'saveWorkflow') {
|
|
|
this.showTF(false)
|
|
this.showTF(false)
|
|
|
}
|
|
}
|
|
@@ -503,6 +518,30 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ async createSnapshoot(id) {
|
|
|
|
|
+ const { first = '' } = this.$store.getters.level
|
|
|
|
|
+ const url = this.$getReportFile(
|
|
|
|
|
+ '/人员/人员档案.rpx',
|
|
|
|
|
+ `id_=${id}&org_=${first}`
|
|
|
|
|
+ )
|
|
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
|
|
+ this.$common
|
|
|
|
|
+ .snapshoot({
|
|
|
|
|
+ url: url,
|
|
|
|
|
+ name:
|
|
|
|
|
+ this.userInfo.user.name +
|
|
|
|
|
+ '人员档案' +
|
|
|
|
|
+ this.$common.getDateNow(10),
|
|
|
|
|
+ type: 'pdf'
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ resolve(res.data.id)
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch((error) => {
|
|
|
|
|
+ reject(error)
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
changeBtn(val, data) {
|
|
changeBtn(val, data) {
|
|
|
if (
|
|
if (
|
|
|
val === 'save' ||
|
|
val === 'save' ||
|