页面接口修改

main
mo 1 year ago
parent 5fc8452f9a
commit f259a802d1

@ -18,12 +18,12 @@ export function updateVoucher(data) {
}) })
} }
// 归档会计凭证 // 归档
export function updateVoucherRecord(data) { export function updateVoucherRecord(query) {
return request({ return request({
url: '/accounting/voucher/updateRecord', url: '/archives/record/recordAssociation',
method: 'put', method: 'put',
data: data params: query
}) })
} }

@ -731,13 +731,14 @@
<el-form-item label="业务实体" prop="company"> <el-form-item label="业务实体" prop="company">
<el-select <el-select
v-model="form.company" v-model="form.company"
value-key="id"
placeholder="请选择业务实体" placeholder="请选择业务实体"
@change="handleCompanyChange" @change="handleCompanyChange"
> >
<el-option <el-option
v-for="item in organizationList" v-for="item in organizationList"
:key="item.id" :key="item.id"
:value="item.id" :value="item"
:label="item.organizationName" :label="item.organizationName"
> >
</el-option> </el-option>
@ -921,7 +922,7 @@ export default {
fileType: "accounting_voucher", fileType: "accounting_voucher",
// //
rules: {}, rules: {},
ids: [], // id ids: "", // id
fileData: "", //id fileData: "", //id
fileTypeOptions: [], // fileTypeOptions: [], //
organizationList: [], // organizationList: [], //
@ -1030,7 +1031,8 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id); this.ids = selection.map((item) => item.id).join(",");
console.log(this.ids);
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
// //
@ -1142,10 +1144,11 @@ export default {
}); });
}, },
handleCompanyChange(val) { handleCompanyChange(val) {
var data = this.organizationList.find((item) => item.id == val); console.log(val);
console.log(data); this.form.companyId = val.id;
this.form.caseNum = data.caseNum; this.form.company = val.organizationName;
this.Fileform.caseNum = data.caseNum; this.form.caseNum = val.caseNum;
this.Fileform.caseNum = val.caseNum;
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
@ -1166,6 +1169,7 @@ export default {
const data = { const data = {
ids: this.ids, ids: this.ids,
recordId: this.fileData, recordId: this.fileData,
recordType: this.fileType,
}; };
// //
updateVoucherRecord(data).then((response) => { updateVoucherRecord(data).then((response) => {

@ -9,22 +9,22 @@
v-show="showSearch" v-show="showSearch"
label-width="88px" label-width="88px"
> >
<!-- <el-form-item label="会计年份" prop="year"> <el-form-item label="档案类型" prop="fileType">
<el-input <el-select
v-model="queryParams.year" v-model="queryParams.fileType"
placeholder="请输入会计年份" placeholder="请选择档案类型"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> >
<el-option
v-for="item in fileTypeOptions"
:key="item.id"
:value="item.value"
:label="item.label"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="会计月份" prop="period">
<el-input
v-model="queryParams.period"
placeholder="请输入会计月份"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> -->
<el-form-item label="起止凭证号" prop="vouNum"> <el-form-item label="起止凭证号" prop="vouNum">
<el-input <el-input
v-model="queryParams.vouNum" v-model="queryParams.vouNum"
@ -450,6 +450,7 @@ export default {
catalogNumOptions: [], // catalogNumOptions: [], //
caseNumOptions: [], // caseNumOptions: [], //
organizationList: [], organizationList: [],
fileTypeOptions: [], //
}; };
}, },
created() { created() {
@ -532,6 +533,14 @@ export default {
}).then((res) => { }).then((res) => {
this.fileStatusOptions = res.data.list || []; this.fileStatusOptions = res.data.list || [];
}); });
//
listData({
pageNo: 1,
pageSize: 100,
dictType: "archives_file_type",
}).then((res) => {
this.fileTypeOptions = res.data.list || [];
});
}, },
// //
changeCaseNum() { changeCaseNum() {

Loading…
Cancel
Save