|
@@ -278,7 +278,7 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<WinseaContentModal v-model="fujianshow" :title="title" @on-cancel="handleClose">
|
|
|
- <ws-upload :editable="false" ref="upload" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx"
|
|
|
+ <ws-upload ref="upload" @onChange="onChange1" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx"
|
|
|
:comp-id="compId" :appendix-ids="appendixIdss" :size-limit="size" />
|
|
|
</WinseaContentModal>
|
|
|
<el-dialog
|
|
@@ -312,7 +312,8 @@ import {
|
|
|
getXialaList,
|
|
|
sponsorWithdraw,
|
|
|
exportFile,
|
|
|
- getcostNo
|
|
|
+ getcostNo,
|
|
|
+ editfujian
|
|
|
} from '@/model/profitable/index'
|
|
|
import { getwarehousName} from '@/model/warehouse/index'
|
|
|
import {
|
|
@@ -543,6 +544,23 @@ export default {
|
|
|
this.$refs.upload1.clearFiles()
|
|
|
})
|
|
|
},
|
|
|
+ onChange1() {
|
|
|
+ this.$refs.upload
|
|
|
+ .handleSaveBill()
|
|
|
+ .then(async (response) => {
|
|
|
+ editfujian({addressUrl:response,id:this.id})
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.fujianshow = false
|
|
|
+ this.$message.success('上传成功')
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch((res) => {
|
|
|
+ EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
+ })
|
|
|
+ },
|
|
|
handlerecord(row) {
|
|
|
if (row.expensesType == 1) {
|
|
|
this.title1 = '收款审核记录'
|
|
@@ -566,15 +584,15 @@ export default {
|
|
|
fujian(row) {
|
|
|
this.id = row.id
|
|
|
|
|
|
- if (row.addressUrl) {
|
|
|
+ // if (row.addressUrl) {
|
|
|
this.appendixIdss = row.addressUrl
|
|
|
this.fujianshow = true
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- message: '暂无附件查看!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- }
|
|
|
+ // } else {
|
|
|
+ // this.$message({
|
|
|
+ // message: '暂无附件查看!',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // }
|
|
|
},
|
|
|
look(row) {
|
|
|
this.$router.push({
|