|
|
@@ -220,26 +220,20 @@ export default {
|
|
|
},
|
|
|
uploadAgain(id) {
|
|
|
this.viewVoucher = false
|
|
|
- // this.handleUpload(id)
|
|
|
+ this.uploadVoucher = true
|
|
|
},
|
|
|
handleUpload(id) {
|
|
|
- // 获取上传token
|
|
|
- fetchToken().then(response => {
|
|
|
- this.uploaderHeaders.Authorization = process.env.VUE_APP_ACCESS_TOKEN_PREFIX + response.data
|
|
|
- this.uploaderData.uploadToken = response.data
|
|
|
-
|
|
|
- setTimeout(() => {
|
|
|
- this.auditId = id
|
|
|
- this.uploadUrl = `${process.env.VUE_APP_BASE_API}/v1/finance/prove-add?id=${this.auditId}`
|
|
|
- this.uploadVoucher = true
|
|
|
+ setTimeout(() => {
|
|
|
+ this.auditId = id
|
|
|
+ this.uploadUrl = `${process.env.VUE_APP_BASE_API}/v1/finance/prove-add?id=${this.auditId}`
|
|
|
+ this.uploadVoucher = true
|
|
|
|
|
|
- this.listLoading = false
|
|
|
- }, 0.5 * 1000)
|
|
|
- })
|
|
|
+ this.listLoading = false
|
|
|
+ }, 0.5 * 1000)
|
|
|
},
|
|
|
uploaderHandleBefore() {
|
|
|
this.$message({
|
|
|
- message: 'Uploading, please hold on. Do not close the window!', // 正在上传,请稍后。请勿关闭窗口!
|
|
|
+ message: this.$t('common.uploadHints'),
|
|
|
type: 'warning',
|
|
|
duration: 500,
|
|
|
})
|