Commit 6c33ac08 authored by dragondean@qq.com's avatar dragondean@qq.com

修复提单号取值错误

parent 32edc91b
......@@ -191,8 +191,9 @@ export default {
/* doc.save("a4.pdf");
return Promise.reject() */
let form = new FormData()
form.append('file', new File([doc.output('arraybuffer')], Date.now() + '.pdf', {type: 'application/pdf'}))
form.append('path', this.selfNo + '.pdf')
let file = this.selfNo + '-' + this.currRow.tidanNo + '.pdf'
form.append('file', new File([doc.output('arraybuffer')], file, {type: 'application/pdf'}))
form.append('path', file)
return uploadFile(form)
}).then(res => {
return this.submit(res.data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment