| | |
| | | @selection-change="handleSelectionChange" |
| | | border |
| | | > |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="序号" align="center" prop="newID" :show-overflow-tooltip="true"/> |
| | | <el-table-column label="单位名称" align="center" prop="cnName" :show-overflow-tooltip="true"/> |
| | | <el-table-column label="税号" align="center" prop="taxNumber" :show-overflow-tooltip="true"/> |
| | | <el-table-column label="联系人" align="center" prop="contactPerson" :show-overflow-tooltip="true"/> |
| | | <el-table-column label="联系电话" align="center" prop="contactPhone" :show-overflow-tooltip="true"/> |
| | | <el-table-column label="通讯地址" align="center" prop="mailingAddress" :show-overflow-tooltip="true"/> |
| | | <el-table-column label="邮箱" align="center" prop="email" :show-overflow-tooltip="true"/> |
| | | <el-table-column label="体检人数" align="center" prop="count" :show-overflow-tooltip="true"/> |
| | | <el-table-column label="体检类别" align="center" prop="tjPacType" :show-overflow-tooltip="true"> |
| | | <!-- <el-table-column type="selection" width="55" align="center" /> --> |
| | | <el-table-column |
| | | label="序号" |
| | | align="center" |
| | | prop="newID" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="单位名称" |
| | | align="center" |
| | | prop="cnName" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="税号" |
| | | align="center" |
| | | prop="taxNumber" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="联系人" |
| | | align="center" |
| | | prop="contactPerson" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="联系电话" |
| | | align="center" |
| | | prop="contactPhone" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="通讯地址" |
| | | align="center" |
| | | prop="mailingAddress" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="邮箱" |
| | | align="center" |
| | | prop="email" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="体检人数" |
| | | align="center" |
| | | prop="count" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="体检类别" |
| | | align="center" |
| | | prop="tjPacType" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.dict_tjtype" :value="scope.row.tjPacType"/> |
| | | <dict-tag |
| | | :options="dict.type.dict_tjtype" |
| | | :value="scope.row.tjPacType" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="预约时间" align="center" prop="tjTime" width="180" :show-overflow-tooltip="true"> |
| | | <el-table-column |
| | | label="预约时间" |
| | | align="center" |
| | | prop="tjTime" |
| | | width="180" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.tjTime, "{y}-{m}-{d}") }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="所选套餐" align="center" prop="pacId" :show-overflow-tooltip="true"/> |
| | | <el-table-column label="套餐名称" align="center" prop="pacName" :show-overflow-tooltip="true"/> |
| | | <el-table-column label="来源" align="center" prop="fromBy" :show-overflow-tooltip="true"> |
| | | <el-table-column |
| | | label="所选套餐" |
| | | align="center" |
| | | prop="pacId" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="套餐名称" |
| | | align="center" |
| | | prop="pacName" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="来源" |
| | | align="center" |
| | | prop="fromBy" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.tj_from_by" :value="scope.row.fromBy"/> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | class-name="small-padding fixed-width" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['hosp:teamAppLog:edit']" |
| | | >沟通 |
| | | </el-button> |
| | | <!-- <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['hosp:teamAppLog:remove']" |
| | | >删除 |
| | | </el-button> |
| | | </el-button> --> |
| | | </template> |
| | | </el-table-column> --> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" @pagination="getList" /> |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 添加或修改小程序团队预约记录对话框 --> |
| | | <!-- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <el-dialog |
| | | :title="title" |
| | | :visible.sync="open" |
| | | width="1200px" |
| | | append-to-body |
| | | > |
| | | <div style="display: flex"> |
| | | <div class="block"> |
| | | <el-timeline> |
| | | <el-timeline-item |
| | | placement="top" |
| | | v-for="(item, index) in goutongsList" |
| | | :key="index" |
| | | > |
| | | <el-card> |
| | | <h4>{{ item.contactUserName }} {{ item.createTime }}</h4> |
| | | <p>{{ item.contactDetail }}</p> |
| | | </el-card> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </div> |
| | | <div style="width: 600px; margin-left: 20px"> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="单位名称" prop="cnName"> |
| | | <el-input v-model="form.cnName" placeholder="请输入单位名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="税号" prop="taxNumber"> |
| | | <el-input v-model="form.taxNumber" placeholder="请输入税号" /> |
| | | </el-form-item> |
| | | <el-form-item label="联系人" prop="contactPerson"> |
| | | <el-input v-model="form.contactPerson" placeholder="请输入联系人" /> |
| | | </el-form-item> |
| | | <el-form-item label="联系电话" prop="contactPhone"> |
| | | <el-input v-model="form.contactPhone" placeholder="请输入联系电话" /> |
| | | </el-form-item> |
| | | <el-form-item label="通讯地址" prop="mailingAddress"> |
| | | <el-input |
| | | v-model="form.mailingAddress" |
| | | placeholder="请输入通讯地址" |
| | | v-model="form.cnName" |
| | | placeholder="请输入单位名称" |
| | | disabled |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="邮箱" prop="email"> |
| | | <el-input v-model="form.email" placeholder="请输入邮箱" /> |
| | | <el-form-item label="联系人" prop="contactPerson"> |
| | | <el-input |
| | | v-model="form.contactPerson" |
| | | placeholder="请输入联系人" |
| | | disabled |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="体检人数" prop="count"> |
| | | <el-input v-model="form.count" placeholder="请输入体检人数" /> |
| | | <el-form-item label="联系电话" prop="contactPhone"> |
| | | <el-input |
| | | v-model="form.contactPhone" |
| | | placeholder="请输入联系电话" |
| | | disabled |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="体检类别" prop="tjPacType"> |
| | | <el-form-item label="沟通人" prop="contactUserId"> |
| | | <!-- <el-input v-model="form.contactUserId" placeholder="请输入沟通人" /> --> |
| | | <el-select |
| | | v-model="form.tjPacType" |
| | | placeholder="请选择体检类别(字典)" |
| | | v-model="form.contactUserId" |
| | | placeholder="请选择" |
| | | style="width: 100%" |
| | | filterable |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.dict_tjtype" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | v-for="item in userList" |
| | | :key="item.userId" |
| | | :label="item.nickName" |
| | | :value="item.userId" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="预约时间" prop="tjTime"> |
| | | <el-date-picker |
| | | clearable |
| | | v-model="form.tjTime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="请选择预约时间" |
| | | <el-form-item label="沟通内容" prop="contactDetail"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="8" |
| | | placeholder="请输入沟通内容" |
| | | v-model="form.contactDetail" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <div |
| | | style=" |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | width: 100%; |
| | | " |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="所选套餐" prop="pacId"> |
| | | <el-input v-model="form.pacId" placeholder="请输入所选套餐" /> |
| | | </el-form-item> |
| | | <el-form-item label="套餐名称" prop="pacName"> |
| | | <el-input v-model="form.pacName" placeholder="请输入套餐名称" /> |
| | | </el-form-item> |
| | | <el-button type="primary" @click="submitForm">提 交</el-button> |
| | | </div> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </el-dialog> --> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { |
| | | listTeamAppLog, |
| | | getTeamAppLog, |
| | | delTeamAppLog, |
| | | addTeamAppLog, |
| | | updateTeamAppLog, |
| | | goutongList, |
| | | TjTeamContac, |
| | | } from "@/api/hosp/teamAppLog"; |
| | | |
| | | import { listUser } from "@/api/system/user"; |
| | | import { getInfo } from "@/api/login"; |
| | | export default { |
| | | name: "TeamAppLog", |
| | | dicts: ["dict_tjtype","tj_from_by"], |
| | | data() { |
| | | return { |
| | | username: "", |
| | | goutongsList: [], |
| | | userList: null, |
| | | ide: "", |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | |
| | | // this.username = this.form.contactUserId; |
| | | }, |
| | | methods: { |
| | | /** 查询小程序团队预约记录列表 */ |
| | |
| | | }); |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | /** 查询用户列表 */ |
| | | getListUser() { |
| | | listUser(this.addDateRange(this.queryParams, this.dateRange)).then( |
| | | (response) => { |
| | | this.userList = response.rows; |
| | | this.userList.forEach((item) => { |
| | | console.log(item); |
| | | this.username = this.$store.state.user.name; |
| | | console.log(this.username); |
| | | if (item.userName == this.username) { |
| | | this.form.contactUserId = item.userId; |
| | | console.log(this.form.contactUserId); |
| | | } |
| | | }); |
| | | } |
| | | ); |
| | | getInfo().then((response) => { |
| | | this.info = response.user; |
| | | this.deptId = response.user.deptId; |
| | | this.userId = response.user.userId; |
| | | this.nickName = response.user.nickName; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | |
| | | // this.title = "添加小程序团队预约记录"; |
| | | // }, |
| | | // /** 修改按钮操作 */ |
| | | // handleUpdate(row) { |
| | | // this.reset(); |
| | | // const id = row.id || this.ids |
| | | // getTeamAppLog(id).then(response => { |
| | | // this.form = response.data; |
| | | // this.open = true; |
| | | // this.title = "修改小程序团队预约记录"; |
| | | // }); |
| | | // }, |
| | | handleUpdate(row) { |
| | | this.getListUser(); |
| | | this.ide = row.id; |
| | | this.reset(); |
| | | const id = row.id || this.ids; |
| | | goutongList(id).then((response) => { |
| | | if (response.code == 200) { |
| | | this.goutongsList = response.rows; |
| | | } |
| | | }); |
| | | getTeamAppLog(id).then((response) => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "沟通记录"; |
| | | }); |
| | | }, |
| | | submitForm() { |
| | | let data = { |
| | | contactPerson: this.form.contactPerson, |
| | | contactPhone: this.form.contactPhone, |
| | | contactUserId: this.form.contactUserId, |
| | | contactDetail: this.form.contactDetail, |
| | | logId: this.ide, |
| | | }; |
| | | TjTeamContac(data).then((response) => { |
| | | if (response.code == 200) { |
| | | this.open = false; |
| | | this.$modal.msgSuccess("提交成功!"); |
| | | } |
| | | }); |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | this.download( |
| | |
| | | .pag1 { |
| | | width: 30%; |
| | | } |
| | | .block{ |
| | | width: 600px; |
| | | height: 600px; |
| | | overflow: auto; |
| | | } |
| | | </style> |