页面修改,接口对接

main
mo 1 year ago
parent 956f7aef6c
commit 41ba68d6b5

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

@ -38,6 +38,9 @@
</template>
</el-table-column>
<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>
<el-table-column label="鉴定人" align="center" prop="userName" />

@ -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);
}
},
},
};

@ -56,6 +56,9 @@
</template>
</el-table-column>
<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>
<el-table-column label="鉴定人" align="center" prop="userName" />

Loading…
Cancel
Save