页面接口修改

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({
url: '/accounting/voucher/updateRecord',
url: '/archives/record/recordAssociation',
method: 'put',
data: data
params: query
})
}

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

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

Loading…
Cancel
Save