| | |
| | | import { parseStrEmpty } from "@/utils/ruoyi";//处理字符串,und,null转换为''; |
| | | |
| | | // 查询患者列表 |
| | | // export function listpatient(query) { |
| | | // return request({ |
| | | // url: '/smartor/patarchive/list', |
| | | // method: 'get', |
| | | // params: query |
| | | // }) |
| | | // }; |
| | | export function listpatient(query) { |
| | | return request({ |
| | | url: '/smartor/patarchive/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | }; |
| | | // 用户信息查询患者列表 |
| | | export function messagelistpatient(data) { |
| | | return request({ |
| | |
| | | |
| | | /*患者档案API接口 |
| | | patid// 自增ID
name// 姓名
sex// 性别 1:男 2:女
iccardno// 证件号码
birthdate// 生日
age// 年龄
source// 来源
archivetime// 建档时间
archiveby// 建档人
telcode// 手机号码
relativetelcode// 亲属号码
iccardtype// 证件类型
orgid// 机构ID
openid// 微信openid
del_flag// 删除标记
update_by// 更新人
update_time// 更新时间
create_by// 创建人
create_time// 创建时间
isupload// 上传标记
upload_time// 上传时间
pid//父ID
guid//GUID
|
| | | patid// 自增ID |
| | | name// 姓名 |
| | | sex// 性别 1:男 2:女 |
| | | iccardno// 证件号码 |
| | | birthdate// 生日 |
| | | age// 年龄 |
| | | source// 来源 |
| | | archivetime// 建档时间 |
| | | archiveby// 建档人 |
| | | telcode// 手机号码 |
| | | relativetelcode// 亲属号码 |
| | | iccardtype// 证件类型 |
| | | orgid// 机构ID |
| | | openid// 微信openid |
| | | del_flag// 删除标记 |
| | | update_by// 更新人 |
| | | update_time// 更新时间 |
| | | create_by// 创建人 |
| | | create_time// 创建时间 |
| | | isupload// 上传标记 |
| | | upload_time// 上传时间 |
| | | pid//父ID |
| | | guid//GUID |
| | | */ |
| | | import request from '@/utils/request' |
| | | |
| | |
| | | // 查询标签列表 |
| | | export function listTag(query) { |
| | | return request({ |
| | | url: '/system/tag/list', |
| | | method: 'get', |
| | | url: '/base/tag/list', |
| | | method: 'post', |
| | | params: query |
| | | }) |
| | | } |
| | |
| | | // 查询标签详细 |
| | | export function getTag(tagid) { |
| | | return request({ |
| | | url: '/system/tag/' + tagid, |
| | | url: '/base/tag/' + tagid, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | // 新增标签 |
| | | export function addTag(data) { |
| | | return request({ |
| | | url: '/system/tag', |
| | | url: '/base/tag', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // 修改标签 |
| | | export function updateTag(data) { |
| | | return request({ |
| | | url: '/system/tag', |
| | | url: '/base/tag', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | |
| | | // 删除标签 |
| | | export function delTag(tagid) { |
| | | return request({ |
| | | url: '/system/tag/' + tagid, |
| | | url: '/base/tag/' + tagid, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-select |
| | | v-model="topqueryParams.topic" |
| | | v-model="tasktopic" |
| | | placeholder="请选择新增类型" |
| | | > |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | :disabled="!tasktopic" |
| | | @click="handleAdd" |
| | | v-hasPermi="['system:user:add']" |
| | | >新增</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="success" |
| | | plain |
| | | icon="el-icon-edit" |
| | | size="medium" |
| | | :disabled="single" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['system:user:edit']" |
| | | >修改</el-button |
| | | > |
| | | </el-col> |
| | | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | |
| | | userList: null, |
| | | patientuserList: null, |
| | | sonuserList: null, |
| | | tasktopic: null, //新增类型 |
| | | form: { |
| | | name: "", |
| | | region: "", |
| | |
| | | label: "北京烤鸭", |
| | | }, |
| | | ], |
| | | taskoptions: [ |
| | | { |
| | | value: "1", |
| | | label: "通知", |
| | | }, |
| | | { |
| | | value: "2", |
| | | label: "随访", |
| | | }, |
| | | { |
| | | value: "3", |
| | | label: "问卷", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "宣教", |
| | | }, |
| | | ], |
| | | quote: false, |
| | | }; |
| | | }, |
| | |
| | | created() { |
| | | this.Addsubtask(); |
| | | this.Getsubtask(); |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | }, |
| | | // 子任务一级弹框 |
| | | handleAdd() { |
| | | this.multiple = true; |
| | | listsvr_prjtaskline(this.deliverytopqueryParams).then((response) => { |
| | | console.log(response); |
| | | this.sonuserList = response.rows; |
| | |
| | | }, |
| | | // 子任务二级弹框 |
| | | handleAddpatient() { |
| | | console.log(this.multiple); |
| | | listpat_archive(this.patientqueryParams).then((response) => { |
| | | console.log(response); |
| | | this.patientuserList = response.rows; |
| | |
| | | handleExport() {}, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = null; |
| | | this.ids = selection.map((item) => item.patid).join(","); |
| | | // let result = this.ids.join(","); |
| | | this.multiple = !selection.length; |
| | | console.log(this.ids); |
| | | }, |
| | | getList() {}, |
| | |
| | | prop="describe" |
| | | /> |
| | | <el-table-column |
| | | label="任务总数" |
| | | label="子任务总数" |
| | | align="center" |
| | | key="nickName" |
| | | prop="nickName" |
| | |
| | | /** 查询门诊随访列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listsvr_prj(this.addDateRange(this.topqueryParams, this.dateRange)).then( |
| | | listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then( |
| | | (response) => { |
| | | console.log(response); |
| | | this.userList = response.rows; |
| | |
| | | updatepat_archive, |
| | | delpat_archive, |
| | | } from "@/api/smartorpor/pat_archive"; |
| | | import { listbase_tag } from "@/api/smartorpor/base_tag"; |
| | | |
| | | import { |
| | | messagelistpatient, |
| | | alterpatient, |
| | | addpatient, |
| | | particularpatient, |
| | | deletepatient, |
| | | Exporterrorpatient, |
| | | toleadpatient, |
| | | } from "@/api/patient/homepage"; |
| | | import { listtag } from "@/api/system/label"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | |
| | | /** 查询患者列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listpat_archive(this.queryParams).then((response) => { |
| | | messagelistpatient(this.queryParams).then((response) => { |
| | | console.log(response); |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | |
| | | /** 查询标签列表 */ |
| | | gettabList() { |
| | | const queryParams = {}; |
| | | listbase_tag().then((response) => { |
| | | listtag().then((response) => { |
| | | console.log(response); |
| | | this.optionstag = response.rows; |
| | | }); |
| | |
| | | handleUpdate(row) { |
| | | console.log(row); |
| | | const userIds = row.patid || this.ids; |
| | | getpat_archive(userIds).then((response) => { |
| | | particularpatient(userIds).then((response) => { |
| | | console.log(response); |
| | | this.form = response.data; |
| | | }); |
| | |
| | | //修改/新增患者 |
| | | submitForm() { |
| | | if (this.amendtag) { |
| | | updatepat_archive(this.form) |
| | | alterpatient(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }); |
| | | } else { |
| | | addpat_archive(this.form) |
| | | addpatient(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | |
| | | this.$modal |
| | | .confirm('是否确认删除用户编号为"' + userIds + '"的数据项?') |
| | | .then(function () { |
| | | return delpat_archive(userIds); |
| | | return deletepatient(userIds); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | |
| | | <template slot-scope="scope"> |
| | | <el-switch |
| | | v-model="scope.row.isupload" |
| | | :active-value="'1'" |
| | | :inactive-value="'0'" |
| | | :active-value="1" |
| | | :inactive-value="0" |
| | | active-color="#13ce66" |
| | | @change="handleStatusChange(scope.row)" |
| | | ></el-switch> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { changetagcategory } from "@/api/system/label"; |
| | | import { |
| | | changetagcategory, |
| | | toamendtag, |
| | | toamendtagcategory, |
| | | addapitag, |
| | | addtagcategory, |
| | | detailstag, |
| | | deletetag, |
| | | deletetagcategory, |
| | | exporttag, |
| | | listtag, |
| | | tagclassifylist, |
| | | } from "@/api/system/label"; |
| | | import { |
| | | listbase_tag, |
| | | getbase_tag, |
| | |
| | | methods: { |
| | | /** 查询标签列表 */ |
| | | getList() { |
| | | listbase_tag(this.addDateRange(this.queryParams)).then((response) => { |
| | | listtag(this.addDateRange(this.queryParams)).then((response) => { |
| | | console.log(response); |
| | | this.total = response.total; |
| | | this.userList = response.rows; |
| | |
| | | // 添加/修改标签 |
| | | Maintenancetag() { |
| | | if (this.lstamendtag) { |
| | | updatebase_tag(this.addDateRange(this.tagform)).then((response) => { |
| | | toamendtag(this.addDateRange(this.tagform)).then((response) => { |
| | | console.log(response); |
| | | this.lstamendtagVisible = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addbase_tag(this.addDateRange(this.tagform)).then((response) => { |
| | | addapitag(this.addDateRange(this.tagform)).then((response) => { |
| | | console.log(response); |
| | | this.lstamendtagVisible = false; |
| | | |
| | |
| | | |
| | | // 获取标签分类 |
| | | gitclasify() { |
| | | listbase_tagcategory(this.addDateRange(this.forms)).then((response) => { |
| | | tagclassifylist(this.addDateRange(this.forms)).then((response) => { |
| | | console.log(response); |
| | | this.numberlb = response.total; |
| | | this.editableTabs = response.rows; |
| | |
| | | submitsidecolumn() { |
| | | if (this.amendtag) { |
| | | this.classifyform.tagcategoryid = this.idds; |
| | | updatebase_tagcategory(this.addDateRange(this.classifyform)).then( |
| | | toamendtagcategory(this.addDateRange(this.classifyform)).then( |
| | | (response) => { |
| | | console.log(response); |
| | | this.gitclasify(); |
| | | } |
| | | ); |
| | | } else { |
| | | addbase_tagcategory(this.addDateRange(this.classifyform)).then( |
| | | addtagcategory(this.addDateRange(this.classifyform)).then( |
| | | (response) => { |
| | | console.log(response); |
| | | this.gitclasify(); |
| | |
| | | //删除分类 |
| | | deletefenlei(row) { |
| | | if (this.deleteVisible) { |
| | | delbase_tagcategory(this.idds).then((response) => { |
| | | deletetagcategory(this.idds).then((response) => { |
| | | console.log(response); |
| | | this.gitclasify(); |
| | | }); |
| | |
| | | // 标签状态修改 |
| | | handleStatusChange(row) { |
| | | console.log(row.isupload); |
| | | let text = row.isupload == "0" ? "停用" : "启用"; |
| | | let text = row.isupload == 0 ? "停用" : "启用"; |
| | | this.$modal |
| | | .confirm('确认要"' + text + '""' + row.tagname + '"标签吗?') |
| | | .then(function () { |
| | | return updatebase_tag(row); |
| | | return toamendtag(row); |
| | | }) |
| | | .then(() => { |
| | | this.$modal.msgSuccess(text + "成功"); |
| | | }) |
| | | .catch(function () { |
| | | row.isupload = row.isupload == "0" ? "1" : "0"; |
| | | row.isupload = row.isupload == 0 ? 1 : 0; |
| | | }); |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | |
| | | : "是否确认删除选中的数据项?" |
| | | ) |
| | | .then(function () { |
| | | return delbase_tag(tagids); |
| | | return deletetag(tagids); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target1: `http://192.168.1.4:8080`, |
| | | // target: `http://192.168.1.3:8080`, |
| | | target: `http://www.hxsoft.com:8080`, |
| | | target:`http://localhost:8080`, |
| | | // target: `http://www.hxsoft.com:8080`, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ['^' + process.env.VUE_APP_BASE_API]: '' |