|
|
|
@ -187,11 +187,15 @@
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="档案" prop="">
|
|
|
|
|
<el-input v-model="form.file" placeholder="请选择要移交档案">
|
|
|
|
|
<el-form-item label="档案" prop="filesNum">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.filesNum"
|
|
|
|
|
placeholder="请选择档案"
|
|
|
|
|
readonly
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
slot="append"
|
|
|
|
|
@click="handleFileSelect"
|
|
|
|
|
@click="handleSelectFile"
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
style="
|
|
|
|
|
border-color: #46a6ff;
|
|
|
|
@ -199,11 +203,8 @@
|
|
|
|
|
color: white;
|
|
|
|
|
"
|
|
|
|
|
></el-button>
|
|
|
|
|
<FileSelect
|
|
|
|
|
ref="FileSelect"
|
|
|
|
|
@onSelected="onFileSelected"
|
|
|
|
|
></FileSelect>
|
|
|
|
|
</el-input>
|
|
|
|
|
<FileSelect ref="FileSelect" @onSelected="onFileSelected" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
@ -222,7 +223,11 @@
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select> -->
|
|
|
|
|
<el-input v-model="form.company" readonly />
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.company"
|
|
|
|
|
placeholder="选择档案后显示"
|
|
|
|
|
readonly
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -306,7 +311,11 @@
|
|
|
|
|
clearable
|
|
|
|
|
@change="handleOldSiteChanged"
|
|
|
|
|
/> -->
|
|
|
|
|
<el-input v-model="form.position" readonly />
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.position"
|
|
|
|
|
placeholder="选择档案后显示"
|
|
|
|
|
readonly
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
@ -364,7 +373,7 @@ import {
|
|
|
|
|
} from "@/api/archives/turnOver";
|
|
|
|
|
import { getOrganizationPage } from "@/api/setting/organization";
|
|
|
|
|
import { listUser } from "@/api/system/user";
|
|
|
|
|
import { createCodeRule } from "@/api/archives/record";
|
|
|
|
|
import { createWS } from "@/api/archives/record";
|
|
|
|
|
import { getSiteTree } from "@/api/setting/organization";
|
|
|
|
|
import FileSelect from "@/components/FileSelect/single.vue";
|
|
|
|
|
|
|
|
|
@ -435,6 +444,7 @@ export default {
|
|
|
|
|
company: null,
|
|
|
|
|
outputName: null,
|
|
|
|
|
inputName: null,
|
|
|
|
|
id: null, //档案历史记录ID
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
@ -455,12 +465,11 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 生成移交单号
|
|
|
|
|
creatApplyNo() {
|
|
|
|
|
createWS(val) {
|
|
|
|
|
const data = {
|
|
|
|
|
catalogNum: "archives",
|
|
|
|
|
caseNum: "turn-over",
|
|
|
|
|
id: val,
|
|
|
|
|
};
|
|
|
|
|
createCodeRule(data).then((response) => {
|
|
|
|
|
createWS(data).then((response) => {
|
|
|
|
|
this.form.applyNo = response.data;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
@ -514,14 +523,14 @@ export default {
|
|
|
|
|
console.log(this.siteOptions);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//选择旧位置
|
|
|
|
|
handleOldSiteChanged(obj) {
|
|
|
|
|
if (obj != null) {
|
|
|
|
|
this.form.fromOrganizationId = obj[0];
|
|
|
|
|
this.form.fromDepotId = obj[1];
|
|
|
|
|
this.form.fromCabinetId = obj[2];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// //选择旧位置
|
|
|
|
|
// handleOldSiteChanged(obj) {
|
|
|
|
|
// if (obj != null) {
|
|
|
|
|
// this.form.fromOrganizationId = obj[0];
|
|
|
|
|
// this.form.fromDepotId = obj[1];
|
|
|
|
|
// this.form.fromCabinetId = obj[2];
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
//选择新位置
|
|
|
|
|
handleNewSiteChanged(obj) {
|
|
|
|
|
if (obj != null) {
|
|
|
|
@ -580,7 +589,6 @@ export default {
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
handleAdd() {
|
|
|
|
|
this.reset();
|
|
|
|
|
this.creatApplyNo();
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "添加移交";
|
|
|
|
|
},
|
|
|
|
@ -653,11 +661,17 @@ export default {
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
//选择档案
|
|
|
|
|
handleFileSelect() {
|
|
|
|
|
handleSelectFile() {
|
|
|
|
|
this.$refs.FileSelect.showFlag = true;
|
|
|
|
|
},
|
|
|
|
|
onFileSelected(obj) {
|
|
|
|
|
console.log(obj);
|
|
|
|
|
if (obj != undefined && obj != null) {
|
|
|
|
|
this.form.company = obj.company;
|
|
|
|
|
this.form.position = obj.position;
|
|
|
|
|
this.form.filesNum = obj.filesNum;
|
|
|
|
|
this.createWS(obj.id);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|