| | |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="公开属性" prop="publicAttribute"> |
| | | <el-input |
| | | <el-select |
| | | v-model="queryParams.publicAttribute" |
| | | placeholder="请输入公开属性" |
| | | placeholder="请选择公开属性" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="item in publicAttributeOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="编制单位" prop="preparationUnit"> |
| | | <el-input |
| | |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="保管期限" prop="retentionPeriod"> |
| | | <el-input |
| | | <el-select |
| | | v-model="queryParams.retentionPeriod" |
| | | placeholder="请输入保管期限" |
| | | placeholder="请选择保管期限" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="item in retentionPeriodOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="密级" prop="securityClassification"> |
| | | <el-input |
| | |
| | | <el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | v-if="amio" |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | @click="handleInfo(scope.row)" |
| | | v-hasPermi="['system:records:edit']" |
| | | >案卷详细信息管理</el-button> |
| | | >案卷详细信息</el-button> |
| | | <el-button |
| | | v-if="scope.row.ownData||scope.row.userId==1" |
| | | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | |
| | | /> |
| | | |
| | | <!-- 添加或修改档案记录对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="档案号" prop="recordId"> |
| | | <el-input v-model="form.recordId" placeholder="请输入档案号" /> |
| | | <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="120px"> |
| | | <el-form-item label="档案号" > |
| | | |
| | | <el-row :gutter="8"> |
| | | <el-col :span="6"> |
| | | <el-select |
| | | v-model="form.recordType" |
| | | placeholder="选择档案类型" |
| | | @change="handleRecordTypeChange" |
| | | > |
| | | <el-option |
| | | v-for="item in recordTypeOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-input |
| | | v-model="form.recordYear" |
| | | placeholder="输入年份" |
| | | @input="generateRecordId" |
| | | /> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-input |
| | | v-model="form.recordSeq" |
| | | placeholder="自动生成" |
| | | disabled |
| | | /> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form-item> |
| | | <el-form-item label="发文号" prop="inquiryNumber"> |
| | | <el-input v-model="form.inquiryNumber" placeholder="请输入发问号" /> |
| | | </el-form-item> |
| | | <el-form-item label="建设项目名称" prop="projectName"> |
| | | <el-input v-model="form.projectName" placeholder="请输入建设项目名称" /> |
| | | </el-form-item> |
| | | <div v-if="vis"> |
| | | <el-form-item label="案卷题名" prop="caseTitle"> |
| | |
| | | <el-form-item label="建设地址" prop="constructionAddress"> |
| | | <el-input v-model="form.constructionAddress" placeholder="请输入建设地址" /> |
| | | </el-form-item> |
| | | <el-form-item label="建设项目名称" prop="projectName"> |
| | | <el-input v-model="form.projectName" placeholder="请输入建设项目名称" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="项目编号" prop="projectNumber"> |
| | | <el-input v-model="form.projectNumber" placeholder="请输入项目编号" /> |
| | | </el-form-item> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listRecords, getRecords, delRecords, addRecords, updateRecords } from "@/api/system/records" |
| | | import { listRecords,getMaxId, getRecords, delRecords, addRecords, updateRecords } from "@/api/system/records" |
| | | import { listAllCategory } from "@/api/system/category" |
| | | |
| | | export default { |
| | | name: "Records", |
| | | data() { |
| | | return { |
| | | maxId: 0, |
| | | // 档案类型选项 |
| | | recordTypeOptions: [], |
| | | // 保管期限选项 |
| | | retentionPeriodOptions: [ |
| | | { value: "10年", label: "10年" }, |
| | | { value: "30年", label: "30年" }, |
| | | { value: "永久", label: "永久" } |
| | | ], |
| | | // 公开属性选项 |
| | | publicAttributeOptions: [ |
| | | { value: "主动公开", label: "主动公开" }, |
| | | { value: "依申请公开", label: "依申请公开" }, |
| | | { value: "免予公开", label: "免予公开" } |
| | | ], |
| | | amio: false, |
| | | vis: false, |
| | | // 遮罩层 |
| | |
| | | historicalReferenceNumber: null |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | form: { |
| | | recordSeq: '', |
| | | }, |
| | | // 表单校验 |
| | | rules: { |
| | | recordId: [ |
| | |
| | | inquiryNumber: [ |
| | | { required: true, message: "发问号不能为空", trigger: "blur" } |
| | | ], |
| | | projectName: [ |
| | | { required: true, message: "项目名称不能为空", trigger: "blur" } |
| | | ], |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.getList() |
| | | |
| | | this.getId() |
| | | this.getRecordTypes() |
| | | |
| | | |
| | | }, |
| | | methods: { |
| | | getId() |
| | | { |
| | | var _this = this; |
| | | getMaxId().then(response=>{ |
| | | // alert(213) |
| | | console.log(response) |
| | | _this.maxId = String(response.data).padStart(5, '0') |
| | | |
| | | _this.$set(_this.form, 'recordSeq', _this.maxId) // |
| | | |
| | | // alert(this.maxId) |
| | | }) |
| | | }, |
| | | /** 获取档案类型列表 */ |
| | | getRecordTypes() { |
| | | listAllCategory().then(response => { |
| | | console.log(response) |
| | | console.log("----=============--------------") |
| | | this.recordTypeOptions = response.data.map(item => ({ |
| | | value: item.numb, |
| | | label: item.nname |
| | | })) |
| | | }) |
| | | }, |
| | | |
| | | /** 档案类型变更处理 */ |
| | | handleRecordTypeChange() { |
| | | this.generateRecordId() |
| | | }, |
| | | |
| | | /** 生成档案号 */ |
| | | generateRecordId() { |
| | | |
| | | if (this.form.recordType && this.form.recordYear) { |
| | | // getNextRecordId({ |
| | | // type: this.form.recordType, |
| | | // year: this.form.recordYear |
| | | // }).then(response => { |
| | | // this.form.recordSeq = response.data.seq |
| | | this.form.recordId = `${this.form.recordType}-${this.form.recordYear}-${this.form.recordSeq}` |
| | | // }) |
| | | } |
| | | }, |
| | | /** 查询档案记录列表 */ |
| | | getList() { |
| | | this.loading = true |
| | |
| | | archiveRoomNumber: null, |
| | | microfilmNumber: null, |
| | | remarks: null, |
| | | historicalReferenceNumber: null |
| | | historicalReferenceNumber: null, |
| | | recordSeq:null |
| | | } |
| | | this.resetForm("form") |
| | | }, |
| | |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset() |
| | | this.form.recordSeq = this.maxId |
| | | this.open = true |
| | | this.vis = false; |
| | | this.title = "添加档案记录" |
| | | }, |
| | | /*查看详情*/ |
| | | handleInfo(row) |
| | | { |
| | | |
| | | var mid = row.id |
| | | const roleId = 2 |
| | | alert(mid) |
| | | var recordId = mid |
| | | // this.$router.push("/archiveManager/infoManagerAu/user/" + roleId+"/"+recordId) |
| | | this.$router.push("/archiveManager/infoManagerAu/archiveMaterialManager/" + recordId) |
| | | |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | |
| | | this.reset() |
| | | this.vis = true; |
| | | const id = row.id || this.ids |
| | |
| | | }, |
| | | // 更多操作触发 |
| | | handleCommand(command, row) { |
| | | |
| | | switch (command) { |
| | | case "handleDataScope": |
| | | this.handleDataScope(row) |
| | |
| | | /** 分配用户操作 */ |
| | | handleAuthUser: function(row) { |
| | | const roleId = 2 |
| | | alert(roleId) |
| | | this.$router.push("/archiveManager/infoManagerAu/user/" + roleId) |
| | | var archiveRecordsId = row.recordId |
| | | // alert(roleId) |
| | | this.$router.push("/archiveManager/infoManagerAu/user/" + roleId+"/"+archiveRecordsId) |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |