删除
This commit is contained in:
parent
0428fdbb91
commit
4947309e04
@ -7,4 +7,20 @@ export function patientInfoImportBatchlist(query) {
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
}
|
||||
// 删除导入
|
||||
export function updateSn(sn) {
|
||||
return request({
|
||||
url: `/manage/patientInfoimportmain/updateSn?sn=${sn}` ,
|
||||
method: 'POST'
|
||||
})
|
||||
}
|
||||
//删除导入明细
|
||||
|
||||
export function updatePatientInfoImport(data) {
|
||||
return request({
|
||||
url: `/manage/patientInfoimportmain/updatePatientInfoImport` ,
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@ -116,7 +116,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="住址" align="center" prop="address" /> -->
|
||||
<el-table-column label="操作" align="center" fixed="right" width="110" >
|
||||
<el-table-column label="操作" align="center" fixed="right" width="130" >
|
||||
<template slot-scope="scope">
|
||||
<!-- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['manage:patientInfo:edit']">修改</el-button>
|
||||
@ -124,6 +124,9 @@
|
||||
v-hasPermi="['manage:patientInfo:remove']">删除</el-button> -->
|
||||
<el-button size="mini" type="text" @click="handOutbound(scope.row)">外呼</el-button>
|
||||
<el-button size="mini" type="text" @click="handleAuthRole(scope.row)">详情</el-button>
|
||||
<el-button size="mini" type="text" @click="handleDelete(scope.row)"
|
||||
>删除</el-button
|
||||
>
|
||||
<!-- <el-button size="mini" type="text" @click="handleedit(scope.row)">画像编辑</el-button> -->
|
||||
|
||||
</template>
|
||||
@ -146,6 +149,8 @@
|
||||
import { usergetList } from "@/api/unitconfig/patientConfiguration";
|
||||
import SearchFilter from "../../components/SearchForm.vue";
|
||||
import cardlist from "../components/cardlist.vue";
|
||||
import { updatePatientInfoImport } from "@/api/manage/patientInfoImport";
|
||||
|
||||
export default {
|
||||
name: "PatientInfo",
|
||||
dicts: ["patient_type", "visit_method", "sign_status", "patient_source"],
|
||||
@ -241,6 +246,21 @@
|
||||
this.attendingPhysicianlist = res.data;
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
console.log(row.id,'row')
|
||||
var obj={
|
||||
sn:this.$route.query.sn,
|
||||
patientName:row.patientName,
|
||||
patientPhone:row.patientPhone
|
||||
}
|
||||
this.$modal.confirm('是否确认删除?').then(function () {
|
||||
return updatePatientInfoImport(obj);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => { });
|
||||
},
|
||||
/** 详情操作 */
|
||||
handleAuthRole(row) {
|
||||
this.$router.push({
|
||||
|
||||
@ -1,24 +1,62 @@
|
||||
<template>
|
||||
<div class="app-container" ref="layout">
|
||||
<div ref="topform" class="form">
|
||||
<SearchFilter labelWidth="90px" :labelWidths="310" size="small" @search="handleQuery" @handleRules="handleRules" patientUploadButtonVisible="true"
|
||||
@reset="resetQuery" @minShowCtrol="getMaxTableHeight">
|
||||
<SearchFilter
|
||||
labelWidth="90px"
|
||||
:labelWidths="310"
|
||||
size="small"
|
||||
@search="handleQuery"
|
||||
@handleRules="handleRules"
|
||||
patientUploadButtonVisible="true"
|
||||
@reset="resetQuery"
|
||||
@minShowCtrol="getMaxTableHeight"
|
||||
>
|
||||
<el-form-item label="导入日期" prop="" label-width="120px">
|
||||
<el-date-picker v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期"
|
||||
style="width: 220px" value-format="yyyy-MM-dd" end-placeholder="结束日期">
|
||||
<el-date-picker
|
||||
v-model="createTime"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
style="width: 220px"
|
||||
value-format="yyyy-MM-dd"
|
||||
end-placeholder="结束日期"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="医院" prop="">
|
||||
<el-select v-model="queryParams.hospitalAgencyId" filterable placeholder="请选择医院" style="width:220px" clearable
|
||||
@clear="clearhospitalAgency" @change="changehospitalAgency">
|
||||
<el-option v-for="item in hospitalAgencylist" :key="item.id" :label="item.agencyName" :value="item.id">
|
||||
<el-select
|
||||
v-model="queryParams.hospitalAgencyId"
|
||||
filterable
|
||||
placeholder="请选择医院"
|
||||
style="width: 220px"
|
||||
clearable
|
||||
@clear="clearhospitalAgency"
|
||||
@change="changehospitalAgency"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in hospitalAgencylist"
|
||||
:key="item.id"
|
||||
:label="item.agencyName"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="院区" prop="">
|
||||
<el-select v-model="queryParams.campusAgencyId" filterable placeholder="请选择院区" style="width:220px" clearable
|
||||
@clear="clearcampusAgency" >
|
||||
<el-option v-for="item in campusAgencylist" :key="item.id" :label="item.agencyName" :value="item.id">
|
||||
<el-select
|
||||
v-model="queryParams.campusAgencyId"
|
||||
filterable
|
||||
placeholder="请选择院区"
|
||||
style="width: 220px"
|
||||
clearable
|
||||
@clear="clearcampusAgency"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in campusAgencylist"
|
||||
:key="item.id"
|
||||
:label="item.agencyName"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -38,53 +76,79 @@
|
||||
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
|
||||
v-hasPermi="['manage:blacklist:remove']">删除</el-button>
|
||||
</el-col> -->
|
||||
<!-- <el-col :span="1.5">
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
||||
v-hasPermi="['manage:blacklist:export']">导出</el-button>
|
||||
</el-col> -->
|
||||
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</div> -->
|
||||
<div ref="table">
|
||||
<el-table :max-height="maxTableHeight" v-loading="loading" :data="PatientInfoImportBatchlist"
|
||||
@selection-change="handleSelectionChange">
|
||||
<el-table
|
||||
:max-height="maxTableHeight"
|
||||
v-loading="loading"
|
||||
:data="PatientInfoImportBatchlist"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column label="序号" type="index" width="48" align="center" />
|
||||
<el-table-column label="流水号" prop="sn" align="center">
|
||||
<el-table-column label="序号" type="index" width="48" align="center" />
|
||||
<el-table-column label="流水号" prop="sn" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" @click="handsn(scope.row)">{{scope.row.sn}}</el-button>
|
||||
<el-button size="mini" type="text" @click="handsn(scope.row)">{{
|
||||
scope.row.sn
|
||||
}}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
<el-table-column label="患者数" align="center" prop="patientCount" width="150"/>
|
||||
<el-table-column label="操作人" align="center" prop="createBy" />
|
||||
<el-table-column label="导入日期" align="center" prop="createTime" >
|
||||
<el-table-column
|
||||
label="患者数"
|
||||
align="center"
|
||||
prop="patientCount"
|
||||
width="150"
|
||||
/>
|
||||
<el-table-column label="操作人" align="center" prop="createBy" />
|
||||
<el-table-column label="导入日期" align="center" prop="createTime">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
|
||||
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<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="['manage:blacklist:edit']">修改</el-button>
|
||||
<el-button size="mini" type="text" @click="handleDelete(scope.row)"
|
||||
v-hasPermi="['manage:blacklist:remove']">删除</el-button> -->
|
||||
<el-button size="mini" type="text" @click="handOutbound(scope.row)">外呼</el-button>
|
||||
<el-button size="mini" type="text" @click="handsn(scope.row)">明细</el-button>
|
||||
<el-button size="mini" type="text" @click="handOutbound(scope.row)"
|
||||
>外呼</el-button
|
||||
>
|
||||
<el-button size="mini" type="text" @click="handsn(scope.row)"
|
||||
>明细</el-button
|
||||
>
|
||||
<el-button size="mini" type="text" @click="handleDelete(scope.row)"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize" @pagination="getList" /> -->
|
||||
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
|
||||
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
|
||||
<myPagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:pageSize="queryParams.pageSize"
|
||||
:indexFromWrap="queryParams.pageNum"
|
||||
@updateCPage="updateCPage"
|
||||
></myPagination>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { patientInfoImportBatchlist} from "@/api/manage/patientInfoImport";
|
||||
import { patientInfoImportBatchlist, updateSn } from "@/api/manage/patientInfoImport";
|
||||
import { selectAgencyList, getDepartmentList, getAgencyList } from "@/api/manage/selectAgencyList";
|
||||
import SearchFilter from '../../components/SearchForm.vue'
|
||||
|
||||
@ -100,7 +164,7 @@ export default {
|
||||
hospitalAgencylist: [],
|
||||
// 院区list
|
||||
campusAgencylist: [],
|
||||
|
||||
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
@ -119,7 +183,7 @@ export default {
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
createTime:"",
|
||||
createTime: "",
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
@ -144,42 +208,52 @@ export default {
|
||||
this.screenChange()
|
||||
},
|
||||
methods: {
|
||||
handleRules(){
|
||||
this.getList()
|
||||
},
|
||||
handleRules() {
|
||||
this.getList()
|
||||
},
|
||||
|
||||
// 导入成功
|
||||
handleRules(){
|
||||
console.log('this.patientInfoImportList')
|
||||
this.getList()
|
||||
},
|
||||
// 流水号
|
||||
handsn(row){
|
||||
this.$router.push({
|
||||
path: "/patient/ImportDetails",
|
||||
query: {
|
||||
path: "/patient/patientinfoimport",
|
||||
sn: row.sn,
|
||||
Timeimport:row.createTime,
|
||||
},
|
||||
});
|
||||
handleRules() {
|
||||
console.log('this.patientInfoImportList')
|
||||
this.getList()
|
||||
},
|
||||
// 流水号/明细
|
||||
handsn(row) {
|
||||
this.$router.push({
|
||||
path: "/patient/ImportDetails",
|
||||
query: {
|
||||
path: "/patient/patientinfoimport",
|
||||
sn: row.sn,
|
||||
Timeimport: row.createTime,
|
||||
},
|
||||
});
|
||||
|
||||
},
|
||||
},
|
||||
// 外呼
|
||||
handOutbound(row){
|
||||
this.$router.push({
|
||||
path: "/patient/ManuallyCreatingTasks",
|
||||
query: {
|
||||
path: "/patient/patientinfoimport",
|
||||
// signPatientRecordId: row.id,
|
||||
sn: row.sn ?row.sn : '',
|
||||
patientName: row.patientName ? row.patientName : '',
|
||||
departmentId: row.departmentId ? row.departmentId : '',
|
||||
departmentName: row.departmentName ? row.departmentName : '',
|
||||
},
|
||||
});
|
||||
handOutbound(row) {
|
||||
this.$router.push({
|
||||
path: "/patient/ManuallyCreatingTasks",
|
||||
query: {
|
||||
path: "/patient/patientinfoimport",
|
||||
// signPatientRecordId: row.id,
|
||||
sn: row.sn ? row.sn : '',
|
||||
patientName: row.patientName ? row.patientName : '',
|
||||
departmentId: row.departmentId ? row.departmentId : '',
|
||||
departmentName: row.departmentName ? row.departmentName : '',
|
||||
},
|
||||
});
|
||||
|
||||
},
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
// const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除?').then(function () {
|
||||
return updateSn(row.sn);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => { });
|
||||
},
|
||||
updateCPage(index, size) {
|
||||
this.queryParams.pageNum = index
|
||||
this.queryParams.pageSize = size
|
||||
@ -228,7 +302,7 @@ export default {
|
||||
pageNum: 1,
|
||||
pageSize: 10
|
||||
}
|
||||
this.createTime ='';
|
||||
this.createTime = '';
|
||||
// this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
@ -265,17 +339,17 @@ export default {
|
||||
query.hospitalId = id
|
||||
} else if (nodeType == 'CAMPUS') {
|
||||
query.campusId = id
|
||||
}
|
||||
}
|
||||
getAgencyList(query).then(res => {
|
||||
// if (type)
|
||||
console.log(nodeType );
|
||||
console.log(nodeType);
|
||||
console.log(res.data.campusList);
|
||||
{
|
||||
if (nodeType == 'HOSPITAL') {
|
||||
this.campusAgencylist = res.data.campusList;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
//选中医院获取院区
|
||||
@ -324,7 +398,7 @@ export default {
|
||||
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId)
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
// 获取表格最高高度
|
||||
getMaxTableHeight() {
|
||||
const windowInnerHeight = window.innerHeight // 屏幕可视高度
|
||||
|
||||
Loading…
Reference in New Issue
Block a user