|
@@ -250,7 +250,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import enrollmentRegistrationService from '@/api/human/enrollment/EnrollmentRegistrationService'
|
|
|
+ import enrollmentWageCardService from '@/api/human/enrollment/EnrollmentWageCardService'
|
|
|
import CommonApi from '@/api/cw/common/CommonApi'
|
|
|
import OSSSerivce, {
|
|
|
httpRequest,
|
|
@@ -388,27 +388,47 @@
|
|
|
}
|
|
|
},
|
|
|
handleDownload(file) {
|
|
|
- toHref(file)
|
|
|
+ let file2 = {
|
|
|
+ url: this.inputForm.accountHolderFront
|
|
|
+ }
|
|
|
+ toHref(file2)
|
|
|
},
|
|
|
handleDownload2(file) {
|
|
|
- toHref(file)
|
|
|
+ let file2 = {
|
|
|
+ url: this.inputForm.accountHolderOpposite
|
|
|
+ }
|
|
|
+ toHref(file2)
|
|
|
},
|
|
|
gsHandleDownload(file) {
|
|
|
- toHref(file)
|
|
|
+ let file2 = {
|
|
|
+ url: this.inputForm.gsAccountHolderFront
|
|
|
+ }
|
|
|
+ toHref(file2)
|
|
|
},
|
|
|
gsHandleDownload2(file) {
|
|
|
- toHref(file)
|
|
|
+ let file2 = {
|
|
|
+ url: this.inputForm.gsAccountHolderOpposite
|
|
|
+ }
|
|
|
+ toHref(file2)
|
|
|
},
|
|
|
handlePictureCardPreview(file) {
|
|
|
+ this.dialogImageUrl = file.url;
|
|
|
+ this.inputForm.accountHolderFrontUrl = file.url
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
handlePictureCardPreview2(file) {
|
|
|
+ this.dialogImageUrl = file.url;
|
|
|
+ this.inputForm.accountHolderOppositeUrl = file.url
|
|
|
this.dialogVisible2 = true;
|
|
|
},
|
|
|
gsHandlePictureCardPreview(file) {
|
|
|
+ this.dialogImageUrl = file.url;
|
|
|
+ this.inputForm.gsAccountHolderFrontUrl = file.url
|
|
|
this.gsDialogVisible = true;
|
|
|
},
|
|
|
gsHandlePictureCardPreview2(file) {
|
|
|
+ this.dialogImageUrl = file.url;
|
|
|
+ this.inputForm.gsAccountHolderOppositeUrl = file.url
|
|
|
this.gsDialogVisible2 = true;
|
|
|
},
|
|
|
handleUploadSuccess(response, file,fileList) {
|
|
@@ -425,7 +445,7 @@
|
|
|
},
|
|
|
handleAvatarSuccess (res, file, fileList, index, val) {
|
|
|
if (val === 'front') {
|
|
|
- this.inputForm.accountHolderFront = res.url
|
|
|
+ this.inputForm.accountHolderFront = '/' +res.url
|
|
|
this.inputForm.accountHolderFrontUrl = res.lsUrl
|
|
|
}
|
|
|
this.hideUploadEdit = true
|
|
@@ -433,7 +453,7 @@
|
|
|
},
|
|
|
handleAvatarSuccess2 (res, file, fileList, index, val) {
|
|
|
if (val === 'front') {
|
|
|
- this.inputForm.accountHolderOpposite = res.url
|
|
|
+ this.inputForm.accountHolderOpposite = '/' +res.url
|
|
|
this.inputForm.accountHolderOppositeUrl = res.lsUrl
|
|
|
}
|
|
|
this.hideUploadEdit2 = true
|
|
@@ -441,7 +461,7 @@
|
|
|
},
|
|
|
gsHandleAvatarSuccess (res, file, fileList, index, val) {
|
|
|
if (val === 'front') {
|
|
|
- this.inputForm.gsAccountHolderFront = res.url
|
|
|
+ this.inputForm.gsAccountHolderFront = '/' +res.url
|
|
|
this.inputForm.gsAccountHolderFrontUrl = res.lsUrl
|
|
|
}
|
|
|
this.hideUploadEdit = true
|
|
@@ -449,7 +469,7 @@
|
|
|
},
|
|
|
gsHandleAvatarSuccess2 (res, file, fileList, index, val) {
|
|
|
if (val === 'front') {
|
|
|
- this.inputForm.gsAccountHolderOpposite = res.url
|
|
|
+ this.inputForm.gsAccountHolderOpposite = '/' +res.url
|
|
|
this.inputForm.gsAccountHolderOppositeUrl = res.lsUrl
|
|
|
}
|
|
|
this.hideUploadEdit2 = true
|
|
@@ -488,7 +508,7 @@
|
|
|
this.loading = false
|
|
|
this.$nextTick(() => {
|
|
|
this.loading = true
|
|
|
- enrollmentRegistrationService.findWageCardById(this.inputForm.id).then( async (data) => {
|
|
|
+ enrollmentWageCardService.findWageCardById(this.inputForm.id).then( async (data) => {
|
|
|
this.fileList = []
|
|
|
this.fileList2 = []
|
|
|
if (this.status === 'audit' || this.status === 'taskFormDetail') {
|
|
@@ -551,7 +571,7 @@
|
|
|
this.inputForm.files = []
|
|
|
}
|
|
|
this.inputForm.id = this.businessId
|
|
|
- enrollmentRegistrationService.saveWageCard(this.inputForm).then((data) => {
|
|
|
+ enrollmentWageCardService.saveWageCard(this.inputForm).then((data) => {
|
|
|
this.close()
|
|
|
this.$message.success(data)
|
|
|
this.$emit('refreshDataList')
|
|
@@ -570,7 +590,7 @@
|
|
|
},
|
|
|
reapplyForm (callback) {
|
|
|
this.loading = true
|
|
|
- enrollmentRegistrationService.findWageCardById(this.inputForm.id).then((data) => {
|
|
|
+ enrollmentWageCardService.findWageCardById(this.inputForm.id).then((data) => {
|
|
|
if (data.type !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
|
this.loading = false
|
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
@@ -586,7 +606,7 @@
|
|
|
if (valid) {
|
|
|
this.loading = true
|
|
|
this.inputForm.type = '2'
|
|
|
- enrollmentRegistrationService.saveWageCard(this.inputForm).then((data) => {
|
|
|
+ enrollmentWageCardService.saveWageCard(this.inputForm).then((data) => {
|
|
|
this.inputForm.title = `${this.$store.state.user.name} 发起了 [工资卡信息登记]`
|
|
|
this.inputForm.id = data.businessId
|
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
@@ -605,7 +625,7 @@
|
|
|
// 通过
|
|
|
async agreeForm (callback) {
|
|
|
this.loading = true
|
|
|
- enrollmentRegistrationService.findWageCardById(this.inputForm.id).then((data) => {
|
|
|
+ enrollmentWageCardService.findWageCardById(this.inputForm.id).then((data) => {
|
|
|
if (data.type !== '2') { // 审核状态不是“审核中”,就弹出提示
|
|
|
this.loading = false
|
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
@@ -621,7 +641,7 @@
|
|
|
this.inputForm.type = '5'
|
|
|
}
|
|
|
}
|
|
|
- enrollmentRegistrationService.saveWageCard(this.inputForm).then((data) => {
|
|
|
+ enrollmentWageCardService.saveWageCard(this.inputForm).then((data) => {
|
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
this.loading = false
|
|
|
}).catch(() => {
|
|
@@ -639,14 +659,14 @@
|
|
|
updateStatusById (type, callback) {
|
|
|
if (type === 'reject') {
|
|
|
this.loading = true
|
|
|
- enrollmentRegistrationService.findWageCardById(this.inputForm.id).then((data) => {
|
|
|
+ enrollmentWageCardService.findWageCardById(this.inputForm.id).then((data) => {
|
|
|
if (data.type !== '2') { // 审核状态不是“审核中”,就弹出提示
|
|
|
this.loading = false
|
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
} else {
|
|
|
this.inputForm.type = '4'
|
|
|
- enrollmentRegistrationService.updateWageCardStatusById(this.inputForm).then(() => {
|
|
|
+ enrollmentWageCardService.updateWageCardStatusById(this.inputForm).then(() => {
|
|
|
this.loading = false
|
|
|
callback()
|
|
|
})
|
|
@@ -654,20 +674,20 @@
|
|
|
})
|
|
|
} else if (type === 'hold') {
|
|
|
this.loading = true
|
|
|
- enrollmentRegistrationService.findWageCardById(this.inputForm.id).then((data) => {
|
|
|
+ enrollmentWageCardService.findWageCardById(this.inputForm.id).then((data) => {
|
|
|
if (data.type !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
|
this.loading = false
|
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
} else {
|
|
|
this.inputForm.type = '1'
|
|
|
- enrollmentRegistrationService.updateWageCardStatusById(this.inputForm).then(() => {
|
|
|
+ enrollmentWageCardService.updateWageCardStatusById(this.inputForm).then(() => {
|
|
|
this.loading = false
|
|
|
callback()
|
|
|
})
|
|
|
}
|
|
|
this.inputForm.type = '1'
|
|
|
- enrollmentRegistrationService.updateWageCardStatusById(this.inputForm).then(() => {
|
|
|
+ enrollmentWageCardService.updateWageCardStatusById(this.inputForm).then(() => {
|
|
|
this.loading = false
|
|
|
callback()
|
|
|
})
|