|
|
|
|
@ -192,6 +192,44 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template #files v-if="paymentRegistrationForm.type === '结算款'">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
附件 :
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-upload
|
|
|
|
|
style="width: 300px"
|
|
|
|
|
ref="upload"
|
|
|
|
|
multiple
|
|
|
|
|
:on-success="successHandle"
|
|
|
|
|
:before-upload="uploadBefore"
|
|
|
|
|
accept=".rar,.zip,.doc,.docx,.pdf,.jpg,.png,.gif,.mp4,.xls,.xlsx"
|
|
|
|
|
:action="action"
|
|
|
|
|
:file-list="fileList"
|
|
|
|
|
:auto-upload="false"
|
|
|
|
|
:on-remove="removeHande"
|
|
|
|
|
:limit="10"
|
|
|
|
|
>
|
|
|
|
|
<el-button slot="trigger" size="small" type="primary"
|
|
|
|
|
>选取文件</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
size="small"
|
|
|
|
|
type="success"
|
|
|
|
|
@click="$refs['upload'].submit()"
|
|
|
|
|
>开始上传</el-button
|
|
|
|
|
>
|
|
|
|
|
<div slot="tip" class="el-upload__tip">
|
|
|
|
|
支持文件格式:.rar .zip .doc .docx .pdf .jpg .png .gif .mp4 .xls
|
|
|
|
|
.xlsx
|
|
|
|
|
<br />单个文件不能超过2M
|
|
|
|
|
</div>
|
|
|
|
|
</el-upload>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:extraFormBottom v-if="false">
|
|
|
|
|
<Input
|
|
|
|
|
search
|
|
|
|
|
@ -240,6 +278,8 @@ import { parseTime } from "@/utils";
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
fileList: [],
|
|
|
|
|
action: process.env.VUE_APP_UPLOAD_API,
|
|
|
|
|
searchContent: "",
|
|
|
|
|
planTotal: 0,
|
|
|
|
|
pageIndex: 1,
|
|
|
|
|
@ -283,6 +323,7 @@ export default {
|
|
|
|
|
isLast: false,
|
|
|
|
|
plan: [],
|
|
|
|
|
remark: "",
|
|
|
|
|
files: []
|
|
|
|
|
},
|
|
|
|
|
form: {
|
|
|
|
|
audit_money: 0,
|
|
|
|
|
@ -345,6 +386,24 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//上传
|
|
|
|
|
successHandle(response, file, fileList) {
|
|
|
|
|
this.fileList = fileList;
|
|
|
|
|
},
|
|
|
|
|
removeHande(file, fileList) {
|
|
|
|
|
this.fileList = fileList;
|
|
|
|
|
},
|
|
|
|
|
uploadBefore(file) {
|
|
|
|
|
console.log(file);
|
|
|
|
|
if (file.size / 1000 > 2 * 1024) {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "warning",
|
|
|
|
|
message: "上传图片大小超过2M!",
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getPlanTypes() {
|
|
|
|
|
const res = await getparameter({
|
|
|
|
|
number: "money_way",
|
|
|
|
|
@ -411,6 +470,13 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.payment = res.data;
|
|
|
|
|
this.fileList = res.files_detail?.map(i => {
|
|
|
|
|
return {
|
|
|
|
|
url: i?.url,
|
|
|
|
|
name: i?.original_name,
|
|
|
|
|
response: i
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
submit() {
|
|
|
|
|
@ -422,6 +488,7 @@ export default {
|
|
|
|
|
is_end: this.paymentRegistrationForm.isLast ? 1 : 0,
|
|
|
|
|
remark: this.paymentRegistrationForm.remark,
|
|
|
|
|
audit_money: this.paymentRegistrationForm.audit_money,
|
|
|
|
|
files: this.fileList.map(i => i?.response?.id)
|
|
|
|
|
};
|
|
|
|
|
addFundLog(data).then((res) => {
|
|
|
|
|
//付款申请后同时更新一下合同中审计金额
|
|
|
|
|
|