qinxianzhangyao
2024-07-26 494dd9608549c5ff1672306eeeff0ce45ab64582
src/views/reservation/resercopy/index.vue
@@ -123,7 +123,9 @@
          align="center"
          prop="company"
          width="200"
        />
        >
        </el-table-column>
        <!-- <el-table-column label="工号" align="center" prop="jobNo" width="80" /> -->
        <el-table-column label="姓名" align="center" prop="name" width="75" />
        <el-table-column label="性别" align="center" prop="sex" width="75">
@@ -535,9 +537,9 @@
        reservationTime: [
          { required: true, validator: checkPhoneNum, trigger: "blur" },
        ],
        dwDeptName: [
          { required: true, validator: checkPhoneNum, trigger: "change" },
        ],
        // dwDeptName: [
        //   { required: true, validator: checkPhoneNum, trigger: "change" },
        // ],
        signingPic: [
          { required: true, validator: checkPhoneNum, trigger: "blur" },
        ],
@@ -846,11 +848,11 @@
    /** 导入按钮操作 */
    handleImport() {
      if (this.objs.drugManufacturerId && this.objs.reservationTime &&this.objs.dwDeptName) {
      if (this.objs.drugManufacturerId && this.objs.reservationTime) {
        this.upload.title = "用户导入";
        this.upload.open = true;
      } else {
        this.$modal.msgError("请选择单位或部门");
        this.$modal.msgError("请选择单位或预约时间");
      }
    },
    /** 下载模板操作 */
@@ -869,6 +871,14 @@
    handleFileSuccess(response, file, fileList) {
      this.ListObj = response.data;
      this.userList = response.data.list;
      this.userList.forEach(item => {
        this.CompanyList.forEach (item1 => {
          if(item1.drugManufacturerId ==this.objs.drugManufacturerId ){
            item.company = item1.cnName
          }
        })
      })
      this.upload.open = false;
      this.upload.isUploading = false;
      this.$refs.upload.clearFiles();