页面修改,接口对接

main
mo 1 year ago
parent 956f7aef6c
commit 41ba68d6b5

@ -69,4 +69,14 @@ export function createCodeRule(data) {
method: 'post', method: 'post',
data: data data: data
}) })
}
// 生成WS
export function createWS(data) {
return request({
url: '/archives/code-rule/createWS',
method: 'post',
data: data
})
} }

@ -38,6 +38,9 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="档案位置" align="center" prop="position" /> <el-table-column label="档案位置" align="center" prop="position" />
<el-table-column label="全宗号" align="center" prop="caseNum" />
<el-table-column label="目录号" align="center" prop="catalogNum" />
<el-table-column label="案卷号" align="center" prop="filesNum" />
<el-table-column label="保存期限" align="center" prop="timeLimit"> <el-table-column label="保存期限" align="center" prop="timeLimit">
</el-table-column> </el-table-column>
<el-table-column label="鉴定人" align="center" prop="userName" /> <el-table-column label="鉴定人" align="center" prop="userName" />

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

@ -56,6 +56,9 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="档案位置" align="center" prop="position" /> <el-table-column label="档案位置" align="center" prop="position" />
<el-table-column label="全宗号" align="center" prop="caseNum" />
<el-table-column label="目录号" align="center" prop="catalogNum" />
<el-table-column label="案卷号" align="center" prop="filesNum" />
<el-table-column label="保存期限" align="center" prop="timeLimit"> <el-table-column label="保存期限" align="center" prop="timeLimit">
</el-table-column> </el-table-column>
<el-table-column label="鉴定人" align="center" prop="userName" /> <el-table-column label="鉴定人" align="center" prop="userName" />

Loading…
Cancel
Save