|
|
|
@ -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) => {
|
|
|
|
|