|
|
@ -673,12 +673,12 @@
|
|
|
|
width="800px"
|
|
|
|
width="800px"
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="140px">
|
|
|
|
<el-form ref="PZform" :model="PZform" :rules="rules" label-width="140px">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="14">
|
|
|
|
<el-col :span="14">
|
|
|
|
<el-form-item label="会计凭证" prop="voucherId">
|
|
|
|
<el-form-item label="会计凭证">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="form.voucherId"
|
|
|
|
v-model="PZform.voucherNum"
|
|
|
|
placeholder="请选择凭证"
|
|
|
|
placeholder="请选择凭证"
|
|
|
|
readonly
|
|
|
|
readonly
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -719,6 +719,7 @@ import {
|
|
|
|
exportBankSlipExcel,
|
|
|
|
exportBankSlipExcel,
|
|
|
|
downloadXml,
|
|
|
|
downloadXml,
|
|
|
|
getBankSlipPageTime,
|
|
|
|
getBankSlipPageTime,
|
|
|
|
|
|
|
|
updateArrayBankSlip,
|
|
|
|
} from "@/api/accounting/bankSlip";
|
|
|
|
} from "@/api/accounting/bankSlip";
|
|
|
|
import { getAccessToken, getTenantId } from "@/utils/auth";
|
|
|
|
import { getAccessToken, getTenantId } from "@/utils/auth";
|
|
|
|
import { listUser } from "@/api/system/user";
|
|
|
|
import { listUser } from "@/api/system/user";
|
|
|
@ -735,10 +736,8 @@ export default {
|
|
|
|
optType: undefined,
|
|
|
|
optType: undefined,
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
// 多个禁用
|
|
|
|
|
|
|
|
multiple: true,
|
|
|
|
|
|
|
|
// 非多个禁用
|
|
|
|
// 非多个禁用
|
|
|
|
multiple1: true,
|
|
|
|
multiple: true,
|
|
|
|
// 导出遮罩层
|
|
|
|
// 导出遮罩层
|
|
|
|
exportLoading: false,
|
|
|
|
exportLoading: false,
|
|
|
|
// 显示搜索条件
|
|
|
|
// 显示搜索条件
|
|
|
@ -813,6 +812,10 @@ export default {
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
|
form1: {},
|
|
|
|
form1: {},
|
|
|
|
|
|
|
|
PZform: {
|
|
|
|
|
|
|
|
voucherId: undefined,
|
|
|
|
|
|
|
|
voucherNum: undefined,
|
|
|
|
|
|
|
|
},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
staffName: [{ required: true, message: "请选择", trigger: "blur" }],
|
|
|
|
staffName: [{ required: true, message: "请选择", trigger: "blur" }],
|
|
|
@ -1143,28 +1146,24 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
console.log(selection);
|
|
|
|
|
|
|
|
this.ids = selection.map((item) => item.id);
|
|
|
|
this.ids = selection.map((item) => item.id);
|
|
|
|
if (selection.length == 1) {
|
|
|
|
this.multiple = !selection.length;
|
|
|
|
this.multiple = false;
|
|
|
|
|
|
|
|
this.form = selection[0];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.multiple = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.multiple1 = !selection.length;
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//关联凭证
|
|
|
|
//关联凭证
|
|
|
|
handleGLPZ() {
|
|
|
|
handleGLPZ() {
|
|
|
|
this.form.voucherId = null;
|
|
|
|
|
|
|
|
this.open2 = true;
|
|
|
|
this.open2 = true;
|
|
|
|
console.log(this.form);
|
|
|
|
this.PZform = {
|
|
|
|
|
|
|
|
voucherId: undefined,
|
|
|
|
|
|
|
|
voucherNum: undefined,
|
|
|
|
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
submitForm2() {
|
|
|
|
submitForm2() {
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
this.$refs["PZform"].validate((valid) => {
|
|
|
|
if (!valid) {
|
|
|
|
if (!valid) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
updateBankSlip(this.form).then((response) => {
|
|
|
|
const data = { id: this.ids, voucherId: this.PZform.voucherId };
|
|
|
|
|
|
|
|
updateArrayBankSlip(data).then((response) => {
|
|
|
|
this.$modal.msgSuccess("关联成功");
|
|
|
|
this.$modal.msgSuccess("关联成功");
|
|
|
|
this.open2 = false;
|
|
|
|
this.open2 = false;
|
|
|
|
this.multiple = true;
|
|
|
|
this.multiple = true;
|
|
|
@ -1176,9 +1175,9 @@ export default {
|
|
|
|
this.$refs.VoucherSelect.showFlag = true;
|
|
|
|
this.$refs.VoucherSelect.showFlag = true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onVoucherSelected(obj) {
|
|
|
|
onVoucherSelected(obj) {
|
|
|
|
console.log(obj);
|
|
|
|
|
|
|
|
if (obj != undefined && obj != null) {
|
|
|
|
if (obj != undefined && obj != null) {
|
|
|
|
this.form.voucherId = obj.id;
|
|
|
|
this.PZform.voucherId = obj.id;
|
|
|
|
|
|
|
|
this.PZform.voucherNum = obj.voucherNum;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|