附件详情修改

main
mo 1 year ago
parent 3dc223cabc
commit a4d1e6a53f

@ -288,37 +288,18 @@
@tab-click="handleClick" @tab-click="handleClick"
> >
<el-tab-pane label="附件" name="first"> <el-tab-pane label="附件" name="first">
<!-- <el-upload
class="upload-demo"
drag
multiple
:action="uploadUrl1"
:file-list="fileList1"
:headers="headers"
name="multipartFile"
:on-success="handleSuccess1"
:show-file-list="false"
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">
将文件拖到此处<em>点击上传</em>
</div>
</el-upload>
<el-divider>已上传附件</el-divider> -->
<div v-if="showNull" class="null1"></div> <div v-if="showNull" class="null1"></div>
<div v-for="(item, index) in fjList1"> <div v-for="(item, index) in fjList1" @click="handleClickPdf(item)">
<el-image :src="item.fileUrl"> </el-image> <el-image
</div> :src="item.fileUrl"
<div v-for="(item, index) in fjList2" @click="handleClickPdf(item)">
<img
src="~@/assets/images/pdf.png"
style=" style="
object-fit: cover; object-fit: cover;
width: 240px; width: 240px;
height: 220px; height: 220px;
cursor: pointer; cursor: pointer;
" "
/> >
</el-image>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="审批流程" name="second"> <el-tab-pane label="审批流程" name="second">
@ -337,27 +318,6 @@
<div v-if="showNul2" class="null1"></div> <div v-if="showNul2" class="null1"></div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="电子发票" name="third"> <el-tab-pane label="电子发票" name="third">
<!-- <el-upload
class="upload-demo"
drag
multiple
:action="uploadUrl3"
:file-list="fileList3"
:headers="headers"
name="multipartFile"
:on-success="handleSuccess3"
:show-file-list="false"
:accept="imgType1"
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">
将文件拖到此处<em>点击上传</em>
</div>
<div class="el-upload__tip" slot="tip">
支持图片pdfofd格式上传
</div>
</el-upload>
<el-divider>已上传电子发票</el-divider> -->
<div v-if="showNul3" class="null1"></div> <div v-if="showNul3" class="null1"></div>
<div v-for="(item, index) in dzfpList1"> <div v-for="(item, index) in dzfpList1">
<el-image :src="item.fileUrl"> </el-image> <el-image :src="item.fileUrl"> </el-image>
@ -430,7 +390,6 @@ import { getAttachmentPage } from "@/api/accounting/attachment";
import { getFlowPage } from "@/api/accounting/flow"; import { getFlowPage } from "@/api/accounting/flow";
import { getInvoicesPage } from "@/api/accounting/invoices"; import { getInvoicesPage } from "@/api/accounting/invoices";
import { getBankSlipPage } from "@/api/accounting/bankSlip"; import { getBankSlipPage } from "@/api/accounting/bankSlip";
import { getAccessToken, getTenantId } from "@/utils/auth";
export default { export default {
name: "Voucher", name: "Voucher",
@ -497,29 +456,11 @@ export default {
depotId: null, depotId: null,
cabinetId: null, cabinetId: null,
}, },
fileList1: [], //
fileList2: [],
fileList3: [],
fjList1: [], fjList1: [],
fjList2: [], fjList2: [],
dzfpList1: [], dzfpList1: [],
dzfpList2: [], dzfpList2: [],
dzfpList3: [], dzfpList3: [],
uploadUrl1:
process.env.VUE_APP_BASE_API +
"/admin-api/accounting/attachment/upload", //
uploadUrl2:
process.env.VUE_APP_BASE_API + "/admin-api//archives/flow/upload", //
uploadUrl3:
process.env.VUE_APP_BASE_API +
"/admin-api/accounting/invoices/identify", //
uploadUrl4:
process.env.VUE_APP_BASE_API +
"/admin-api/accounting/attachment/upload", //
headers: {
Authorization: "Bearer " + getAccessToken(),
"tenant-id": getTenantId(),
}, //
// //
form: {}, form: {},
// //
@ -528,11 +469,11 @@ export default {
siteOptions: [], // siteOptions: [], //
siteArray: [], // siteArray: [], //
typeOptions: [], // typeOptions: [], //
url: "",
showNull: "", showNull: "",
showNul2: "", showNul2: "",
showNul3: true, showNul3: true,
showNul4: true, showNul4: true,
fjUrl: "",
}; };
}, },
created() { created() {
@ -568,6 +509,7 @@ export default {
} else { } else {
this.showNull = false; this.showNull = false;
} }
this.fjList1 = response.data.list;
this.fjList2 = response.data.list.filter(function (item) { this.fjList2 = response.data.list.filter(function (item) {
return item.suffix == "pdf"; return item.suffix == "pdf";
}); });
@ -576,10 +518,6 @@ export default {
handleClickPdf(val) { handleClickPdf(val) {
window.open(val.fileUrl); window.open(val.fileUrl);
}, },
handleSuccess1(response, file, fileList) {
console.log(response, file, fileList);
this.getFJ();
},
/** 查询审批流程 */ /** 查询审批流程 */
getSPLC(val) { getSPLC(val) {
// //

Loading…
Cancel
Save