删除
This commit is contained in:
parent
0428fdbb91
commit
4947309e04
@ -8,3 +8,19 @@ export function patientInfoImportBatchlist(query) {
|
|||||||
params: query
|
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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="住址" align="center" prop="address" /> -->
|
<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">
|
<template slot-scope="scope">
|
||||||
<!-- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
<!-- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['manage:patientInfo:edit']">修改</el-button>
|
v-hasPermi="['manage:patientInfo:edit']">修改</el-button>
|
||||||
@ -124,6 +124,9 @@
|
|||||||
v-hasPermi="['manage:patientInfo:remove']">删除</el-button> -->
|
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="handOutbound(scope.row)">外呼</el-button>
|
||||||
<el-button size="mini" type="text" @click="handleAuthRole(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> -->
|
<!-- <el-button size="mini" type="text" @click="handleedit(scope.row)">画像编辑</el-button> -->
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@ -146,6 +149,8 @@
|
|||||||
import { usergetList } from "@/api/unitconfig/patientConfiguration";
|
import { usergetList } from "@/api/unitconfig/patientConfiguration";
|
||||||
import SearchFilter from "../../components/SearchForm.vue";
|
import SearchFilter from "../../components/SearchForm.vue";
|
||||||
import cardlist from "../components/cardlist.vue";
|
import cardlist from "../components/cardlist.vue";
|
||||||
|
import { updatePatientInfoImport } from "@/api/manage/patientInfoImport";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "PatientInfo",
|
name: "PatientInfo",
|
||||||
dicts: ["patient_type", "visit_method", "sign_status", "patient_source"],
|
dicts: ["patient_type", "visit_method", "sign_status", "patient_source"],
|
||||||
@ -240,6 +245,21 @@
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.attendingPhysicianlist = res.data;
|
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) {
|
handleAuthRole(row) {
|
||||||
|
|||||||
@ -1,24 +1,62 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container" ref="layout">
|
<div class="app-container" ref="layout">
|
||||||
<div ref="topform" class="form">
|
<div ref="topform" class="form">
|
||||||
<SearchFilter labelWidth="90px" :labelWidths="310" size="small" @search="handleQuery" @handleRules="handleRules" patientUploadButtonVisible="true"
|
<SearchFilter
|
||||||
@reset="resetQuery" @minShowCtrol="getMaxTableHeight">
|
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-form-item label="导入日期" prop="" label-width="120px">
|
||||||
<el-date-picker v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期"
|
<el-date-picker
|
||||||
style="width: 220px" value-format="yyyy-MM-dd" end-placeholder="结束日期">
|
v-model="createTime"
|
||||||
|
type="daterange"
|
||||||
|
range-separator="至"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
style="width: 220px"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="医院" prop="">
|
<el-form-item label="医院" prop="">
|
||||||
<el-select v-model="queryParams.hospitalAgencyId" filterable placeholder="请选择医院" style="width:220px" clearable
|
<el-select
|
||||||
@clear="clearhospitalAgency" @change="changehospitalAgency">
|
v-model="queryParams.hospitalAgencyId"
|
||||||
<el-option v-for="item in hospitalAgencylist" :key="item.id" :label="item.agencyName" :value="item.id">
|
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-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="院区" prop="">
|
<el-form-item label="院区" prop="">
|
||||||
<el-select v-model="queryParams.campusAgencyId" filterable placeholder="请选择院区" style="width:220px" clearable
|
<el-select
|
||||||
@clear="clearcampusAgency" >
|
v-model="queryParams.campusAgencyId"
|
||||||
<el-option v-for="item in campusAgencylist" :key="item.id" :label="item.agencyName" :value="item.id">
|
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-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -46,45 +84,71 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div ref="table">
|
<div ref="table">
|
||||||
<el-table :max-height="maxTableHeight" v-loading="loading" :data="PatientInfoImportBatchlist"
|
<el-table
|
||||||
@selection-change="handleSelectionChange">
|
:max-height="maxTableHeight"
|
||||||
|
v-loading="loading"
|
||||||
|
:data="PatientInfoImportBatchlist"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
>
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column label="序号" type="index" width="48" align="center" />
|
<el-table-column label="序号" type="index" width="48" align="center" />
|
||||||
<el-table-column label="流水号" prop="sn" align="center">
|
<el-table-column label="流水号" prop="sn" align="center">
|
||||||
<template slot-scope="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
<el-table-column
|
||||||
<el-table-column label="患者数" align="center" prop="patientCount" width="150"/>
|
label="患者数"
|
||||||
|
align="center"
|
||||||
|
prop="patientCount"
|
||||||
|
width="150"
|
||||||
|
/>
|
||||||
<el-table-column label="操作人" align="center" prop="createBy" />
|
<el-table-column label="操作人" align="center" prop="createBy" />
|
||||||
<el-table-column label="导入日期" align="center" prop="createTime">
|
<el-table-column label="导入日期" align="center" prop="createTime">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
|
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<template slot-scope="scope">
|
||||||
<!-- <el-button size="mini" type="text" @click="handleUpdate(scope.row)"
|
<!-- <el-button size="mini" type="text" @click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['manage:blacklist:edit']">修改</el-button>
|
v-hasPermi="['manage:blacklist:edit']">修改</el-button>
|
||||||
<el-button size="mini" type="text" @click="handleDelete(scope.row)"
|
<el-button size="mini" type="text" @click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['manage:blacklist:remove']">删除</el-button> -->
|
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="handOutbound(scope.row)"
|
||||||
<el-button size="mini" type="text" @click="handsn(scope.row)">明细</el-button>
|
>外呼</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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
||||||
:limit.sync="queryParams.pageSize" @pagination="getList" /> -->
|
:limit.sync="queryParams.pageSize" @pagination="getList" /> -->
|
||||||
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
|
<myPagination
|
||||||
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:pageSize="queryParams.pageSize"
|
||||||
|
:indexFromWrap="queryParams.pageNum"
|
||||||
|
@updateCPage="updateCPage"
|
||||||
|
></myPagination>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { patientInfoImportBatchlist} from "@/api/manage/patientInfoImport";
|
import { patientInfoImportBatchlist, updateSn } from "@/api/manage/patientInfoImport";
|
||||||
import { selectAgencyList, getDepartmentList, getAgencyList } from "@/api/manage/selectAgencyList";
|
import { selectAgencyList, getDepartmentList, getAgencyList } from "@/api/manage/selectAgencyList";
|
||||||
import SearchFilter from '../../components/SearchForm.vue'
|
import SearchFilter from '../../components/SearchForm.vue'
|
||||||
|
|
||||||
@ -153,7 +217,7 @@ export default {
|
|||||||
console.log('this.patientInfoImportList')
|
console.log('this.patientInfoImportList')
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
// 流水号
|
// 流水号/明细
|
||||||
handsn(row) {
|
handsn(row) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: "/patient/ImportDetails",
|
path: "/patient/ImportDetails",
|
||||||
@ -180,6 +244,16 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
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) {
|
updateCPage(index, size) {
|
||||||
this.queryParams.pageNum = index
|
this.queryParams.pageNum = index
|
||||||
this.queryParams.pageSize = size
|
this.queryParams.pageSize = size
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user