页面修改,新增认款操作

main
mo 1 year ago
parent ec365da8cc
commit 3592aa755d

@ -85,10 +85,10 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="凭证id" prop="voucherId"> <el-form-item label="凭证号" prop="voucherNum">
<el-input <el-input
v-model="queryParams.voucherId" v-model="queryParams.voucherNum"
placeholder="请输入凭证id" placeholder="请输入凭证"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
@ -164,7 +164,7 @@
<!-- 列表 --> <!-- 列表 -->
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column label="凭证id" align="center" prop="voucherId" /> <!-- <el-table-column label="凭证id" align="center" prop="voucherId" /> -->
<el-table-column label="OA/ERP流程编号" align="center" prop="flowCode" /> <el-table-column label="OA/ERP流程编号" align="center" prop="flowCode" />
<el-table-column <el-table-column
label="交易日期" label="交易日期"
@ -227,8 +227,16 @@
label="操作" label="操作"
align="center" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
width="180"
> >
<template v-slot="scope"> <template v-slot="scope">
<el-button
size="mini"
type="text"
icon="el-icon-s-check"
@click="handleComfirm(scope.row)"
>认款
</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -264,16 +272,29 @@
width="1000px" width="1000px"
append-to-body append-to-body
> >
<el-form ref="form" :model="form" :rules="rules" label-width="130px"> <el-upload
class="upload-demo"
drag
:limit="1"
:action="uploadUrl"
:file-list="fileList"
:headers="headers"
:on-success="handleSuccess"
name="multipartFile"
:multiple="false"
:accept="imgType"
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="110px"
style="margin-top: 20px"
>
<el-row> <el-row>
<el-col :span="8">
<el-form-item label="OA/ERP流程编号" prop="flowCode">
<el-input
v-model="form.flowCode"
placeholder="请输入OA/ERP流程编号"
/>
</el-form-item>
</el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="交易日期" prop="tradTime"> <el-form-item label="交易日期" prop="tradTime">
<el-date-picker <el-date-picker
@ -285,13 +306,6 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item label="银行" prop="bank">
<el-input v-model="form.bank" placeholder="请输入银行" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="交易类型" prop="type"> <el-form-item label="交易类型" prop="type">
<el-select v-model="form.type" placeholder="请选择交易类型"> <el-select v-model="form.type" placeholder="请选择交易类型">
@ -299,6 +313,13 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item label="银行" prop="bank">
<el-input v-model="form.bank" placeholder="请输入银行" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="我方账户" prop="myCompany"> <el-form-item label="我方账户" prop="myCompany">
<el-input v-model="form.myCompany" placeholder="请输入我方账户" /> <el-input v-model="form.myCompany" placeholder="请输入我方账户" />
@ -530,6 +551,42 @@
<el-button @click="cancel1"> </el-button> <el-button @click="cancel1"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 认款弹出框-->
<el-dialog title="认款" :visible.sync="open2" width="800px" append-to-body>
<el-form
ref="queryForm"
:model="queryParams"
:rules="rules"
label-width="140px"
>
<el-row>
<el-col :span="14">
<el-form-item label="经办人" prop="staffName">
<el-select
v-model="form1.staffName"
filterable
placeholder="请选择经办人"
value-key="id"
@change="handleSelectUser"
>
<el-option
v-for="item in userOptions"
:key="item.id"
:value="item"
:label="item.username"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm2"> </el-button>
<el-button @click="cancel2"> </el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@ -544,6 +601,8 @@ import {
downloadXml, downloadXml,
getBankSlipPageTime, getBankSlipPageTime,
} from "@/api/accounting/bankSlip"; } from "@/api/accounting/bankSlip";
import { getAccessToken, getTenantId } from "@/utils/auth";
import { listUser } from "@/api/system/user";
export default { export default {
name: "BankSlip", name: "BankSlip",
@ -565,6 +624,7 @@ export default {
// //
open: false, open: false,
open1: false, open1: false,
open2: false,
// //
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
@ -612,15 +672,25 @@ export default {
password: null, password: null,
inputPassword: null, inputPassword: null,
}, },
userOptions: [], //
// //
form: {}, form: {},
form1: {},
// //
rules: {}, rules: {},
fileList: [], //
uploadUrl:
process.env.VUE_APP_BASE_API + "/admin-api/archives/flow/upload", //
headers: {
Authorization: "Bearer " + getAccessToken(),
"tenant-id": getTenantId(),
}, //
time: "", time: "",
}; };
}, },
created() { created() {
this.getList(); this.getList();
this.getUserList();
}, },
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
@ -643,6 +713,12 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
//
getUserList() {
listUser().then((response) => {
this.userOptions = response.data.list;
});
},
handleOneMonth() { handleOneMonth() {
this.time = 1; this.time = 1;
this.getList2(); this.getList2();
@ -664,6 +740,10 @@ export default {
cancel1() { cancel1() {
this.open1 = false; this.open1 = false;
}, },
/** 取消按钮 */
cancel2() {
this.open2 = false;
},
/** 表单重置 */ /** 表单重置 */
reset() { reset() {
this.form = { this.form = {
@ -708,6 +788,13 @@ export default {
archiveId: undefined, archiveId: undefined,
archiveState: undefined, archiveState: undefined,
password: undefined, password: undefined,
staffId: undefined,
staffName: undefined,
};
this.form1 = {
id: undefined,
staffId: undefined,
staffName: undefined,
}; };
this.resetForm("form"); this.resetForm("form");
}, },
@ -737,6 +824,23 @@ export default {
this.title = "修改银行回单"; this.title = "修改银行回单";
}); });
}, },
/** 认款按钮操作 */
handleComfirm(val) {
this.form1.id = val.id;
this.open2 = true;
},
handleSelectUser(val) {
this.form1.staffId = val.id;
this.form1.staffName = val.username;
},
submitForm2() {
console.log(this.form1);
updateBankSlip(this.form1).then((response) => {
this.$modal.msgSuccess("认款成功");
this.open2 = false;
this.getList();
});
},
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {

@ -170,14 +170,6 @@
style="margin-top: 20px" style="margin-top: 20px"
> >
<el-row> <el-row>
<el-col :span="8">
<el-form-item label="OA/ERP流程编号" prop="flowCode">
<el-input
v-model="form.flowCode"
placeholder="请输入OA/ERP流程编号"
/>
</el-form-item>
</el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="会计凭证" prop="voucherNum"> <el-form-item label="会计凭证" prop="voucherNum">
<el-select <el-select
@ -216,13 +208,6 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="流程号" prop="flowId">
<el-input v-model="form.flowId" placeholder="请输入流程号" />
</el-form-item>
</el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="摘要" prop="note"> <el-form-item label="摘要" prop="note">
<el-input v-model="form.note" placeholder="请输入摘要" /> <el-input v-model="form.note" placeholder="请输入摘要" />
@ -300,7 +285,6 @@ export default {
// //
open: false, open: false,
open1: false, open1: false,
fileList: [],
imgType: ".jpeg, .jpg, .png", imgType: ".jpeg, .jpg, .png",
// //
queryParams: { queryParams: {

@ -313,6 +313,7 @@
width: 240px; width: 240px;
height: 220px; height: 220px;
cursor: pointer; cursor: pointer;
margin: 0 10px;
" "
> >
</el-image> </el-image>
@ -328,6 +329,7 @@
width: 240px; width: 240px;
height: 220px; height: 220px;
cursor: pointer; cursor: pointer;
margin: 0 10px;
" "
> >
</el-image> </el-image>
@ -365,6 +367,7 @@
width: 240px; width: 240px;
height: 220px; height: 220px;
cursor: pointer; cursor: pointer;
margin: 0 10px;
" "
> >
</el-image> </el-image>

Loading…
Cancel
Save