| | |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="类别号" prop="categoryNumber"> |
| | | <el-row :gutter="8"> |
| | | <el-col :span="6"> |
| | | <el-select |
| | | v-model="queryParams.categoryType" |
| | | placeholder="选择类别类型" |
| | | clearable |
| | | @change="handleQuery" |
| | | > |
| | | <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-select |
| | | v-model="queryParams.categoryZone" |
| | | placeholder="选择地区" |
| | | clearable |
| | | @change="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="item in zoneTypeOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <el-input |
| | | v-model="queryParams.categoryYear" |
| | | placeholder="年份" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <el-input |
| | | v-model="queryParams.categorySeq" |
| | | placeholder="开始序号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <el-input |
| | | v-model="queryParams.categorySeqEnd" |
| | | placeholder="结束序号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form-item> |
| | | <el-form-item label="案卷题名" prop="caseTitle"> |
| | | <el-input |
| | | v-model="queryParams.caseTitle" |
| | |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="扫描加工公司" prop="scanningCompany"> |
| | | <el-input |
| | | <el-select |
| | | v-model="queryParams.scanningCompany" |
| | | placeholder="请输入扫描加工公司" |
| | | placeholder="请选择扫描加工公司" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | @change="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="item in projectCompanyOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="档案管(室)号" prop="archiveRoomNumber"> |
| | | <el-input |
| | |
| | | <div class="option-group"> |
| | | <label class="option-label"> |
| | | <input type="checkbox" v-model="excelOptions.includeQrCode"> |
| | | <span>包含二维码</span> |
| | | <span>包含条形码</span> |
| | | </label> |
| | | </div> |
| | | |
| | |
| | | <el-input v-model="form.projectNumber" placeholder="请输入项目编号" /> |
| | | </el-form-item> |
| | | <el-form-item label="扫描加工公司" prop="scanningCompany"> |
| | | <el-input v-model="form.scanningCompany" placeholder="请输入扫描加工公司" /> |
| | | <el-select v-model="form.scanningCompany" placeholder="请选择扫描加工公司"> |
| | | <el-option |
| | | v-for="item in projectCompanyOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="档案管(室)号" prop="archiveRoomNumber"> |
| | | <el-input v-model="form.archiveRoomNumber" placeholder="请输入档案管(室)号" /> |
| | |
| | | maxId: 0, |
| | | // 项目名称选项 |
| | | projectOptions: [], |
| | | // 项目管理公司选项 |
| | | projectCompanyOptions: [], |
| | | // 档案类型选项 |
| | | recordTypeOptions: [], |
| | | //地区类型 |
| | |
| | | pageSize: 10, |
| | | recordId: null, |
| | | inquiryNumber: null, |
| | | categoryType: null, // 类别类型 |
| | | categoryZone: null, // 类别地区 |
| | | categoryYear: null, // 类别年份 |
| | | categorySeq: null, // 开始序号 |
| | | categorySeqEnd: null, // 结束序号 |
| | | everyProjectName: null, |
| | | caseTitle: null, |
| | | publicAttribute: null, |
| | |
| | | this.getRecordTypes() |
| | | this.getZoneOptions() |
| | | this.fetchProjectOptions() |
| | | this.fetchProjectCompanyOptions() |
| | | this.getList() |
| | | }, |
| | | watch: { |
| | |
| | | console.error('获取项目名称列表失败:', error) |
| | | } |
| | | }, |
| | | |
| | | async fetchProjectCompanyOptions() { |
| | | try { |
| | | const response = await listAllProjectName() |
| | | console.log("项目管理公司数据:", response) |
| | | // 从项目数据中提取管理公司信息 |
| | | const companies = [...new Set(response.data.data.map(item => item.companyName).filter(Boolean))] |
| | | console.log("项目管理公司数据:", companies) |
| | | |
| | | this.projectCompanyOptions = companies.map(company => ({ |
| | | value: company, |
| | | label: company |
| | | })) |
| | | } catch (error) { |
| | | console.error('获取项目管理公司列表失败:', error) |
| | | } |
| | | }, |
| | | /** 获取档案类型列表 */ |
| | | getRecordTypes() { |
| | | return new Promise((resolve) => { |
| | |
| | | this.loading = true |
| | | console.log(this.queryParams) |
| | | console.log("--------------") |
| | | listRecords(this.queryParams).then(response => { |
| | | // 创建queryParams的副本,避免直接修改原对象 |
| | | const queryParams = { ...this.queryParams } |
| | | |
| | | // 处理类别号搜索 |
| | | if ((queryParams.categoryType || queryParams.categoryZone || queryParams.categoryYear) && (queryParams.categorySeq || queryParams.categorySeqEnd)) { |
| | | // 构建基础部分(前三个字段保持一致) |
| | | const baseParts = [] |
| | | if (queryParams.categoryType) baseParts.push(queryParams.categoryType) |
| | | if (queryParams.categoryZone) baseParts.push(queryParams.categoryZone) |
| | | if (queryParams.categoryYear) baseParts.push(queryParams.categoryYear) |
| | | const baseCategory = baseParts.join('-') |
| | | |
| | | // 构建开始类别号 |
| | | if (queryParams.categorySeq) { |
| | | queryParams.categoryNumberStart = baseCategory + '-' + queryParams.categorySeq |
| | | } |
| | | |
| | | // 构建结束类别号 |
| | | if (queryParams.categorySeqEnd) { |
| | | queryParams.categoryNumberEnd = baseCategory + '-' + queryParams.categorySeqEnd |
| | | } else if (queryParams.categorySeq) { |
| | | // 如果没有结束序号,则结束类别号与开始类别号相同 |
| | | queryParams.categoryNumberEnd = queryParams.categoryNumberStart |
| | | } |
| | | console.log(queryParams) |
| | | console.log("9999999999999999999") |
| | | // 删除单独的字段,避免重复搜索 |
| | | delete queryParams.categoryType |
| | | delete queryParams.categoryZone |
| | | delete queryParams.categoryYear |
| | | delete queryParams.categorySeq |
| | | delete queryParams.categorySeqEnd |
| | | } |
| | | |
| | | listRecords(queryParams).then(response => { |
| | | |
| | | console.log(response) |
| | | this.recordsList = response.data.data |
| | |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.resetForm("queryForm") |
| | | // 确保类别号相关字段被完全重置 |
| | | this.queryParams.categoryType = null |
| | | this.queryParams.categoryZone = null |
| | | this.queryParams.categoryYear = null |
| | | this.queryParams.categorySeq = null |
| | | this.queryParams.categorySeqEnd = null |
| | | this.handleQuery() |
| | | }, |
| | | // 多选框选中数据 |
| | |
| | | // |
| | | handleSubmit(row) |
| | | { |
| | | // alert(row.id) |
| | | //alert(row.id) |
| | | var id = row.id |
| | | updateStatusById(id).then(response=>{ |
| | | var status = '录入完成' |
| | | updateStatusById(status, id).then(response=>{ |
| | | this.$modal.msgSuccess("提交成功") |
| | | this.getList() |
| | | }) |