| | |
| | | </el-form-item> |
| | | <el-form-item label="有效天数" prop="yxts"> |
| | | <el-input |
| | | style="width:100px" |
| | | style="width: 100px" |
| | | v-model="objs.yxts" |
| | | placeholder="有效天数" |
| | | />天(可自定义) |
| | |
| | | icon="el-icon-upload2" |
| | | size="mini" |
| | | @click="handleImport" |
| | | |
| | | >导入</el-button |
| | | > |
| | | </el-col> |
| | |
| | | icon="el-icon-upload2" |
| | | size="mini" |
| | | @click="importTemplate" |
| | | |
| | | >下载模板</el-button |
| | | > |
| | | </el-col> |
| | |
| | | </div> |
| | | </el-upload> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitFileForm">确 定</el-button> |
| | | <el-button type="primary" @click="submitFileForm">保存信息</el-button> |
| | | <el-button @click="upload.open = false">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | getDwAndDwDept, |
| | | newExcelImport, |
| | | } from "@/api/system/comp"; |
| | | import { newConfirm, getCompany, queryCompany } from "@/api/team/tuanti"; |
| | | import { |
| | | newConfirm, |
| | | getCompany, |
| | | queryCompany, |
| | | getconfigKey, |
| | | } from "@/api/team/tuanti"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import { read, utils } from "xlsx"; |
| | | |
| | | export default { |
| | | dicts: [ |
| | |
| | | objs: { |
| | | drugManufacturerId: "", |
| | | reservationTime: "", |
| | | yxts: "30", |
| | | yxts: "", |
| | | }, |
| | | DataList: [], |
| | | tjOrderList: [], //单个项目集合 |
| | |
| | | }, |
| | | // 搜索 |
| | | getRemoteData(query) { |
| | | |
| | | if (query) { |
| | | let compName = query; |
| | | queryCompany(compName).then((response) => { |
| | |
| | | // 获取单位信息集合 |
| | | getCompanyList() { |
| | | this.loading = true; |
| | | getconfigKey('team_reservation_default_day').then((res) => { |
| | | console.log(res, 1111); |
| | | this.objs.yxts = res.msg; |
| | | }); |
| | | getCompany(this.queryParam).then((response) => { |
| | | this.CompanyList = response.data; |
| | | this.total = response.total; |
| | |
| | | this.TotalPrice = ""; |
| | | this.tableData[0] = []; |
| | | this.TotalPrice1 = ""; |
| | | this.userList = [] |
| | | // this.resetForm("form"); |
| | | this.form = {}; |
| | | }, |
| | |
| | | selectTime(val) { |
| | | this.objs.reservationTime = val; |
| | | }, |
| | | |
| | | /** 导入按钮操作 */ |
| | | handleImport() { |
| | | if (this.objs.drugManufacturerId && this.objs.reservationTime) { |
| | |
| | | }, |
| | | // 文件上传成功处理 |
| | | handleFileSuccess(response, file, fileList) { |
| | | console.log(response,666666); |
| | | if (response.code == 500) { |
| | | console.log(response, 666666); |
| | | if (response.code == 500) { |
| | | console.log(22222222222); |
| | | // Message.warning(response.msg); |
| | | this.$modal.msgError(response.msg); |
| | | // this.$modal.msgError(response.msg); |
| | | // this.$modal.msgError("人员"+ response.data.list + "信息错误"); |
| | | const errorList = response.data.list.join(", "); |
| | | this.$confirm(`${errorList}`, "以下人员信息有误,请核对后导入:", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "error", |
| | | center: true, |
| | | dangerouslyUseHTMLString: true, |
| | | }); |
| | | } |
| | | this.ListObj = response.data; |
| | | this.userList = response.data.list; |
| | | |
| | | this.userList.forEach((item) => { |
| | | this.CompanyList.forEach((item1) => { |
| | | if (item1.drugManufacturerId == this.objs.drugManufacturerId) { |
| | |
| | | this.$refs.upload.clearFiles(); |
| | | this.leftList = response.msg; |
| | | console.log(response.code); |
| | | |
| | | |
| | | if (this.leftList == "操作失败") { |
| | | this.isdisabled = true; |
| | | this.$alert( |