This commit is contained in:
LiJianZhao 2025-05-16 13:21:34 +08:00
parent fc7e7ee768
commit f3a089dbfe
3 changed files with 14 additions and 11 deletions

View File

@ -198,16 +198,16 @@ const close = () => {
defineExpose({init}) defineExpose({init})
const refund = () => { const refund = () => {
console.log(orderInfo.value) console.log(orderInfo.value)
post("retail/refund",{orderId:orderInfo.value.id}).then((res:any)=>{ post("charge/refund",{changeOrderCode:orderInfo.value.code}).then((res:any)=>{
close() close()
}) })
} }
const cancel = () => { // const cancel = () => {
post("retail/cancelOrder",{orderId:orderInfo.value.id}).then((res:any)=>{ // post("retail/cancelOrder",{orderId:orderInfo.value.id}).then((res:any)=>{
close() // close()
}) // })
//
} // }
const wsStore = useWsStore(); const wsStore = useWsStore();
// medType // medType
type MedTypeKey = keyof typeof medTypeJson; type MedTypeKey = keyof typeof medTypeJson;

View File

@ -122,8 +122,11 @@
</el-table-column> </el-table-column>
<el-table-column label="状态" width="100"> <el-table-column label="状态" width="100">
<template #default="scope"> <template #default="scope">
<el-tag v-if="scope.row.status==0" type="info">{{ getStatusStr(scope.row.status) }}</el-tag> <el-tag v-if="scope.row.status==0 || scope.row.status==2 " type="info">
{{ getStatusStr(scope.row.status) }}
</el-tag>
<el-tag v-if="scope.row.status==1" type="success">{{ getStatusStr(scope.row.status) }}</el-tag> <el-tag v-if="scope.row.status==1" type="success">{{ getStatusStr(scope.row.status) }}</el-tag>
<el-tag v-if="scope.row.status==3" type="danger">{{ getStatusStr(scope.row.status) }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="支付时间" prop="payTime"> <el-table-column label="支付时间" prop="payTime">
@ -161,7 +164,7 @@
<Mask :is-show="isFlowingWater" @close="isFlowingWater = false" title="流水记录"> <Mask :is-show="isFlowingWater" @close="isFlowingWater = false" title="流水记录">
<FlowingWater :info="listItem"></FlowingWater> <FlowingWater :info="listItem"></FlowingWater>
</Mask> </Mask>
<OrderDetail ref="orderDetailRef"></OrderDetail> <OrderDetail ref="orderDetailRef" @updateOrderList="getChargeList(listItem.id)"></OrderDetail>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import {ref, onMounted, nextTick} from 'vue' import {ref, onMounted, nextTick} from 'vue'

View File

@ -18,8 +18,8 @@
<el-table-column prop="projectCode" label="订单号" width="240"></el-table-column> <el-table-column prop="projectCode" label="订单号" width="240"></el-table-column>
<el-table-column prop="source" label="结算类型" width="180"> <el-table-column prop="source" label="结算类型" width="180">
<template #default="scope"> <template #default="scope">
<el-tag v-if="scope.row.source == 0" type="success">零售</el-tag> <el-tag v-if="scope.row.source == 0" type="success">门诊收费</el-tag>
<el-tag v-else>{{ scope.row.source }}</el-tag> <el-tag v-if="scope.row.source == 1" type="success">门诊退费</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="payType" label="支付类型" width="180"> <el-table-column prop="payType" label="支付类型" width="180">