From 45585da2f765240df578c960b2b71706c4d4e1a9 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Mon, 20 Apr 2026 12:01:22 +0800 Subject: [PATCH] seo --- .../basic-dictionary/ThirdPartyInterfaces.vue | 4 + .../customerOrg/BusReservationImport.vue | 477 ++++-------------- 2 files changed, 93 insertions(+), 388 deletions(-) diff --git a/src/views/basic-dictionary/ThirdPartyInterfaces.vue b/src/views/basic-dictionary/ThirdPartyInterfaces.vue index 1ecee2c..d683098 100644 --- a/src/views/basic-dictionary/ThirdPartyInterfaces.vue +++ b/src/views/basic-dictionary/ThirdPartyInterfaces.vue @@ -287,6 +287,10 @@ export default { .then(res => { if (res.code > -1) { this.thirdInterfaceType = res.data + this.thirdInterfaceType.forEach(e => { + e.id = e.interfaceFlagCode + e.displayName = e.interfaceFlagName + }); } }) }, diff --git a/src/views/customerOrg/BusReservationImport.vue b/src/views/customerOrg/BusReservationImport.vue index 247ec67..c5a29cc 100644 --- a/src/views/customerOrg/BusReservationImport.vue +++ b/src/views/customerOrg/BusReservationImport.vue @@ -8,8 +8,7 @@ 公交预约导入 -
+ ">
- 下载导入模版 + 下载导入模版
- 导入 + 导入
- 导入后结果状态导出 + 导入后结果状态导出
-
- - - - - - - - - - - - - - - - - - - - - - - - - +
+ + + + +
- +

导入Excel时,Excel的格式必须符合一定规范,该格式的模板文件可通过下载模板获取。
注意事项如下: @@ -223,87 +58,38 @@
- 下一步 + 下一步 关闭
- +
- +
- - + +
标题行: 第 - +
- 上一步 - 下一步 + 上一步 + 下一步 关闭
- +
@@ -313,160 +99,70 @@
- - + + - +
- 全选 - 取消全选 + 全选 + 取消全选
- 上一步 - 下一步 - 关闭 + 上一步 + 下一步 + 关闭
- +
单位分组: - - + +
体检中心: - - + +
预约日期: - - + +
- 上一步 - 确定导入 + 上一步 + 确定导入 关闭
- + @@ -519,12 +215,17 @@ export default { { dispLabel: "性别", val: "sexName" }, { dispLabel: "年龄", val: "age" }, { dispLabel: "电话", val: "phone" }, - { dispLabel: "分公司", val: "childCompanyName" }, + { dispLabel: "子公司", val: "childCompanyName" }, + { dispLabel: "分公司名称", val: "branchCompany" }, { dispLabel: "部门", val: "departmentName" }, { dispLabel: "岗位", val: "positionName" }, + { dispLabel: "岗位名称", val: "position2" }, + { dispLabel: "在职", val: "empStatus" }, + { dispLabel: "婚姻状况", val: "maritalStatus" }, { dispLabel: "在职", val: "empStatus" }, { dispLabel: "婚姻状况", val: "maritalStatus" }, ], + startPoint: -1, // 多选起点 -1 表示未选择 endPoint: -1, // 多选终点 -1 表示未选择 CustomerOrgGroupList: [], @@ -533,11 +234,11 @@ export default { CustomerOrgGroup: "", thirdMedicalCenter: "", ThirdMedicalCenterBookingDate: "", - readDataOptsInit:{}, - dataImportOptsInit:{} + readDataOptsInit: {}, + dataImportOptsInit: {} }; }, - created(){ + created() { this.readDataOptsInit = Object.assign({}, this.readDataOpts) this.dataImportOptsInit = Object.assign({}, this.dataImportOpts) }, @@ -651,14 +352,14 @@ export default { if (d == "fileDataOpr") { ret = this.readData(); } - if(d=="fileDataOpts"){ + if (d == "fileDataOpts") { let count = 0 this.excelData.forEach(e => { - if (e.choosed) count++ - }) - if(count==0){ - this.$message.warning("未选中要导入的记录") - ret=0 + if (e.choosed) count++ + }) + if (count == 0) { + this.$message.warning("未选中要导入的记录") + ret = 0 } } if (ret > 0) { @@ -667,12 +368,12 @@ export default { } }, dialogClose() { - let keys = Object.keys(this.dialogGroup) - keys.forEach(e => { - this.dialogGroup[e] = false - }) + let keys = Object.keys(this.dialogGroup) + keys.forEach(e => { + this.dialogGroup[e] = false + }) let elo = document.getElementById('fileNames') - if(elo) elo.value = ''; // 清空选择的文件 + if (elo) elo.value = ''; // 清空选择的文件 this.workBook = null //EXCEL 工作薄 this.sheetNames = [] //EXCEL 工作薄中的表单 {sheetName:} @@ -682,7 +383,7 @@ export default { this.CustomerOrgGroup = "" this.thirdMedicalCenter = "" - this.ThirdMedicalCenterBookingDate ="" + this.ThirdMedicalCenterBookingDate = "" this.startPoint = -1 // 多选起点 -1 表示未选择 this.endPoint = -1 // 多选终点 -1 表示未选择 @@ -905,13 +606,13 @@ export default { ((i + 1) * 100) / this.choosedData.length ); body = this.excelDataToApiBody(this.choosedData[i]); - postapi("/api/app/ThirdBooking/CreateBookingMedicalByExcel",body).then( + postapi("/api/app/ThirdBooking/CreateBookingMedicalByExcel", body).then( (res) => { if (res.code >= 0) { - this.tableData.push(Object.assign({ importState: '导入成功' }, this.choosedData[i])) - } else { - this.tableData.push(Object.assign({ importState: '导入失败', importDes: res.message }, this.choosedData[i])) - } + this.tableData.push(Object.assign({ importState: '导入成功' }, this.choosedData[i])) + } else { + this.tableData.push(Object.assign({ importState: '导入失败', importDes: res.message }, this.choosedData[i])) + } } ); if (i == this.choosedData.length - 1) { @@ -943,8 +644,8 @@ export default { ExcelData[e.dispLabel] == "未婚" ? "0" : ExcelData[e.dispLabel] == "已婚" - ? "1" - : ExcelData[e.dispLabel]; + ? "1" + : ExcelData[e.dispLabel]; break; case "empStatus": if (ExcelData[e.dispLabel]) @@ -952,8 +653,8 @@ export default { ExcelData[e.dispLabel] == "在职" ? "0" : ExcelData[e.dispLabel] == "退休" - ? "1" - : ExcelData[e.dispLabel]; + ? "1" + : ExcelData[e.dispLabel]; break; default: body[e.val] = ExcelData[e.dispLabel];