修改
This commit is contained in:
parent
0a6052fd63
commit
aee2e47312
@ -70,16 +70,26 @@
|
||||
<el-button type="danger" v-if="scope.row.orderStatus == 'CANCEL'">已取消</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="订单类型" align="center" prop="orderType">
|
||||
<template slot-scope="scope">{{scope.row.orderType=='COMPANION_IN_HOSPITAL'?'陪诊陪护':'其它' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="会员名称" align="center" prop="patientName" />
|
||||
<el-table-column label="护理员名称" align="center" prop="nursePersonName" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
v-if="scope.row.orderType=='COMPANION_IN_HOSPITAL'"
|
||||
@click="seeedit(scope.row)"
|
||||
>查看</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-zoom-in"
|
||||
@click="seeLook(scope.row)"
|
||||
v-hasPermi="['system:appointmentOrder:query']"
|
||||
v-if="scope.row.orderType!='COMPANION_IN_HOSPITAL'"
|
||||
>查看</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
@ -428,6 +438,110 @@
|
||||
@pagination="info"
|
||||
/>
|
||||
</el-dialog>
|
||||
<!-- 编辑 -->
|
||||
<el-dialog title="院内陪护订单信息" :visible.sync="editinnerVisible" append-to-body width="1280px">
|
||||
<el-form :inline="true" ref="form" :model="query" :rules="rules" label-width="130px">
|
||||
<el-form-item label="姓名" prop="caregiverName">
|
||||
<div class="text">{{query.caregiverName}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="电话" prop="caregiverPhone">
|
||||
<div class="text">{{query.caregiverPhone}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="医院名称" prop="hospitalName">
|
||||
<div class="text">{{query.hospitalName}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="科室名称" prop="departmentName">
|
||||
<div class="text">{{query.departmentName}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="病床号" prop="hospitalBedNumber">
|
||||
<div class="text">{{query.hospitalBedNumber}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="时间" prop="time">
|
||||
<div
|
||||
class="text"
|
||||
>{{query.companionStartDate}} {{query.companionEndDate?'至':'' }} {{ query.companionEndDate }}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="护理站名称" prop="nurseStationName">
|
||||
<div class="text">{{query.nurseStationName}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="护理项目名称" prop="nurseItemName">
|
||||
<div class="text">{{query.nurseItemName}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单编号" prop="orderNo">
|
||||
<div class="text">{{query.orderNo}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单状态" prop="orderStatus">
|
||||
<div class="text">{{switchOrderStatus(query.orderStatus)}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单总金额" prop="totalPrice">
|
||||
<div class="text">{{query.totalPrice}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="数量" prop="companionDays">
|
||||
<div class="text">{{query.companionDays}}</div>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="护理员名称" prop="nursePersonName">
|
||||
<div class="text">{{query.nursePersonName}}</div>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="护理项目时长" prop="itemServeDurationUnit">
|
||||
<div class="text">{{query.itemServeDurationUnit}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="评价星级" prop="compositeScore" v-if="query.orderStatus =='EVALUATED'">
|
||||
<div class="text">{{query.compositeScore}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="评价满意度"
|
||||
prop="evaluateSatisfaction"
|
||||
v-if="query.orderStatus == 'EVALUATED'"
|
||||
>
|
||||
<div class="text">{{query.evaluateSatisfaction}}</div>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="服务到岗照片"
|
||||
prop="onDutyPictureUrl"
|
||||
v-if="
|
||||
query.orderStatus == 'COMPLETE' || query.orderStatus == 'EVALUATED'
|
||||
"
|
||||
>
|
||||
<img class="img" :src="baseurl + query.onDutyPictureUrl" alt />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="服务结束照片"
|
||||
prop="serviceEndPictureUrl"
|
||||
v-if="
|
||||
query.orderStatus == 'COMPLETE' || query.orderStatus == 'EVALUATED'
|
||||
"
|
||||
>
|
||||
<img class="img" :src="baseurl + query.serviceEndPictureUrl" alt />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="用户确认签名"
|
||||
prop="userSignaturePictureUrl"
|
||||
v-if="
|
||||
query.orderStatus == 'COMPLETE' || query.orderStatus == 'EVALUATED'
|
||||
"
|
||||
>
|
||||
<img class="img" :src="baseurl + query.userSignaturePictureUrl" alt />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="预约服务位置"
|
||||
v-if="
|
||||
query.orderStatus == 'COMPLETE' || query.orderStatus == 'EVALUATED'
|
||||
"
|
||||
>
|
||||
<el-input v-model="query.serviceLocationName" disabled style="width: 250px" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div
|
||||
id="container"
|
||||
v-if="
|
||||
this.query.orderStatus == 'COMPLETE' ||
|
||||
this.query.orderStatus == 'EVALUATED'
|
||||
"
|
||||
></div>
|
||||
<div slot="footer" class="dialog-footer" style="margin-right: 50px">
|
||||
<el-button type="primary" @click="editinnerVisible = false">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
@ -16,45 +16,46 @@ export default {
|
||||
map: null,
|
||||
baseurl: process.env.VUE_APP_BASE_API,
|
||||
orderStatuslist: [{
|
||||
value: "WAIT_PAY",
|
||||
label: "待付款",
|
||||
},
|
||||
{
|
||||
value: "PAY",
|
||||
label: "已付款",
|
||||
},
|
||||
{
|
||||
value: "WAIT_DISPATCH",
|
||||
label: "待派单",
|
||||
},
|
||||
{
|
||||
value: "NOT_FINISH",
|
||||
label: "未完成",
|
||||
},
|
||||
{
|
||||
value: "COMPLETE",
|
||||
label: "待评价",
|
||||
},
|
||||
{
|
||||
value: "EVALUATED",
|
||||
label: "服务完成",
|
||||
},
|
||||
{
|
||||
value: "WAIT_REFUND",
|
||||
label: "退款中",
|
||||
},
|
||||
{
|
||||
value: 'REFUNDED',
|
||||
label: '退款成功'
|
||||
},
|
||||
{
|
||||
value: "CANCEL",
|
||||
label: "已取消",
|
||||
}
|
||||
value: "WAIT_PAY",
|
||||
label: "待付款",
|
||||
},
|
||||
{
|
||||
value: "PAY",
|
||||
label: "已付款",
|
||||
},
|
||||
{
|
||||
value: "WAIT_DISPATCH",
|
||||
label: "待派单",
|
||||
},
|
||||
{
|
||||
value: "NOT_FINISH",
|
||||
label: "未完成",
|
||||
},
|
||||
{
|
||||
value: "COMPLETE",
|
||||
label: "待评价",
|
||||
},
|
||||
{
|
||||
value: "EVALUATED",
|
||||
label: "服务完成",
|
||||
},
|
||||
{
|
||||
value: "WAIT_REFUND",
|
||||
label: "退款中",
|
||||
},
|
||||
{
|
||||
value: 'REFUNDED',
|
||||
label: '退款成功'
|
||||
},
|
||||
{
|
||||
value: "CANCEL",
|
||||
label: "已取消",
|
||||
}
|
||||
],
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
innerVisible4: false,
|
||||
editinnerVisible: false,
|
||||
innerrefund: false,
|
||||
// 护理员姓名弹框
|
||||
nursePersonNameinfo: false,
|
||||
@ -115,7 +116,7 @@ export default {
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
mounted() {},
|
||||
mounted() { },
|
||||
methods: {
|
||||
init(query) {
|
||||
this.map = new AMap.Map("container", {
|
||||
@ -206,6 +207,60 @@ export default {
|
||||
break;
|
||||
}
|
||||
},
|
||||
//编辑
|
||||
seeedit(row) {
|
||||
this.loading = true;
|
||||
const id = row.orderNo;
|
||||
this.map = null;
|
||||
appointmentOrderDetails(id).then(res => {
|
||||
this.timevalue = [
|
||||
res.data.companionStartDate ? res.data.companionStartDate : "",
|
||||
res.data.companionEndDate ? res.data.companionEndDate : ""
|
||||
];
|
||||
this.query = res.data;
|
||||
res.data.disablingCondition == "DISABLED"
|
||||
? (res.data.disablingCondition = "是")
|
||||
: "";
|
||||
res.data.disablingCondition == "NOT_DISABLED"
|
||||
? (res.data.disablingCondition = "否")
|
||||
: "";
|
||||
if (row.orderStatus == "EVALUATED") {
|
||||
if (res.data) {
|
||||
if (res.data.evaluateSatisfaction == "COMMONLY") {
|
||||
this.query.evaluateSatisfaction = "一般";
|
||||
} else if (res.data.evaluateSatisfaction == "SATISFIED") {
|
||||
this.query.evaluateSatisfaction = "满意";
|
||||
} else if (res.data.evaluateSatisfaction == "DISSATISFIED") {
|
||||
this.query.evaluateSatisfaction = "不满意";
|
||||
} else if (res.data.evaluateSatisfaction == "VERYSATISFIED") {
|
||||
this.query.evaluateSatisfaction = "非常满意";
|
||||
} else if (res.data.evaluateSatisfaction == "VERYDISSATISFIED") {
|
||||
this.query.evaluateSatisfaction = "非常不满意";
|
||||
}
|
||||
this.loading = false;
|
||||
this.editinnerVisible = true;
|
||||
setTimeout(() => {
|
||||
this.init(this.query);
|
||||
}, 500);
|
||||
} else {
|
||||
this.loading = false;
|
||||
this.editinnerVisible = true;
|
||||
setTimeout(() => {
|
||||
this.init(this.query);
|
||||
}, 500);
|
||||
}
|
||||
} else if (row.orderStatus == "COMPLETE") {
|
||||
this.loading = false;
|
||||
this.editinnerVisible = true;
|
||||
setTimeout(() => {
|
||||
this.init(this.query);
|
||||
}, 500);
|
||||
} else {
|
||||
this.loading = false;
|
||||
this.editinnerVisible = true;
|
||||
}
|
||||
});
|
||||
},
|
||||
// 查看
|
||||
seeLook(row) {
|
||||
this.loading = true
|
||||
@ -378,24 +433,24 @@ export default {
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
this.$confirm("是否确认删除订单信息的数据项?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
})
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
})
|
||||
.then(() => {
|
||||
deldetailed(row.appointmentOrderId).then((res) => {
|
||||
this.$message.success("删除成功");
|
||||
this.getList();
|
||||
});
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => { });
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"system/nurseType/export", {
|
||||
...this.queryParams,
|
||||
},
|
||||
...this.queryParams,
|
||||
},
|
||||
`nurseType_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user