| | |
| | | size="mini" |
| | | @click="handleBlacklist" |
| | | :disabled="single" |
| | | :loading="blackloading" |
| | | v-hasPermi="['hosp:order:export']" |
| | | >加入黑名单</el-button |
| | | > |
| | |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="职业" |
| | | align="center" |
| | | prop="career" |
| | | width="90px" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="工龄" |
| | | align="center" |
| | | prop="gl" |
| | | width="90px" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="文化程度" |
| | | align="center" |
| | | prop="wenHua" |
| | | width="90px" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="介绍人" |
| | |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="职业" prop="career"> |
| | | <el-input |
| | | v-model="form.career" |
| | | placeholder="请输入职业" |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="工龄" prop="gl"> |
| | | <el-input |
| | | v-model="form.gl" |
| | | placeholder="请输入工龄" |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="文化程度" prop="wenHua"> |
| | | <el-input |
| | | v-model="form.wenHua" |
| | | placeholder="请输入文化程度" |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="介绍人" prop="cusIntroduce"> |
| | | <el-input |
| | |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="单位名称" prop="dictCompId"> |
| | | <el-select |
| | | :remote-method="getRemoteData" |
| | | v-model="form.compName" |
| | | remote |
| | | |
| | | style="width: 300px" |
| | | placeholder="请选择单位名称" |
| | | clearable |
| | | |
| | | @change="idFn1" |
| | | > |
| | | <el-option |
| | | v-for="dict in CompanyList" |
| | | :key="dict.cnName" |
| | | :label="dict.cnName" |
| | | :value="dict.drugManufacturerId" |
| | | /> |
| | | </el-select> |
| | | <i class="el-icon-circle-plus-outline" @click="handleAdd1"></i> |
| | | </el-form-item> |
| | | <el-form-item label="单位名称" prop="compName"> |
| | | <el-select |
| | | v-model="form.compName" |
| | | remote |
| | | default-first-option |
| | | allow-create |
| | | filterable |
| | | style="width: 200px" |
| | | placeholder="请选择单位名称" |
| | | clearable |
| | | @change="idFn1" |
| | | > |
| | | <el-option |
| | | v-for="dict in CompanyList" |
| | | :key="dict.cnName" |
| | | :label="dict.cnName" |
| | | :value="dict.cnName" |
| | | /> |
| | | </el-select> |
| | | <i class="el-icon-circle-plus-outline" @click="handleAdd1"></i> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | |
| | | |
| | | // 遮罩层 |
| | | loading: true, |
| | | blackloading:false, |
| | | isAdding:false, |
| | | |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | |
| | | cusMarryStatus: null, |
| | | cusIdcard: null, |
| | | cusIntroduce: null, |
| | | career:null, |
| | | gl:null, |
| | | wenHua: null, |
| | | cusNumber: null, |
| | | cusIsvip: null, |
| | | }, |
| | |
| | | submitFormS() { |
| | | this.$refs["form1"].validate((valid) => { |
| | | if (valid) { |
| | | |
| | | addComp(this.form1).then((response) => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open1 = false; |
| | |
| | | }); |
| | | }, |
| | | idFn1(value) { |
| | | console.log(value); |
| | | if (value) { |
| | | this.form.dictCompId = value; |
| | | // 保存修改前的 dictCompId |
| | | const originalCompId = this.form.dictCompId; |
| | | |
| | | // 更新公司名称 |
| | | this.form.compName = value; |
| | | |
| | | // 遍历公司列表,根据公司名称设置对应的 drugManufacturerId |
| | | this.CompanyList.forEach((item) => { |
| | | if (item.drugManufacturerId == this.form.dictCompId) { |
| | | this.form.compName = item.cnName; |
| | | if (item.cnName == this.form.compName) { |
| | | this.form.dictCompId = item.drugManufacturerId; |
| | | } |
| | | }); |
| | | |
| | | // 如果 dictCompId 没有变化,重置为空 |
| | | if (this.form.dictCompId === originalCompId) { |
| | | this.form.dictCompId = ''; |
| | | } |
| | | } |
| | | }, |
| | | // 搜索 |
| | |
| | | cusMarryStatus: null, |
| | | cusIdcard: null, |
| | | cusIntroduce: null, |
| | | wenHua: null, |
| | | career:null, |
| | | gl:null, |
| | | cusNumber: null, |
| | | cusIsvip: null, |
| | | createBy: null, |
| | |
| | | }, |
| | | |
| | | handleBlacklist() { |
| | | this.blackloading = true; |
| | | let data = { |
| | | cusId: this.ids[0], |
| | | }; |
| | | addCustomerBlack(data).then((res) => { |
| | | this.$modal.msgSuccess("已加入黑名单"); |
| | | this.blackloading = false; |
| | | this.getList(); |
| | | }); |
| | | }, |
| | |
| | | .dialog-footer { |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | .el-icon-circle-plus-outline { |
| | | line-height: 20px; |
| | | font-size: 20px; |
| | | } |
| | | .dialog-footer2 { |
| | | width: 960px; |