Compare commits

...

2 Commits

Author SHA1 Message Date
LiJianZhao 3ea97ef532 Merge branch 'main' of ssh://git.jizhiweb.cn:2222/clinic-v2/web 2025-05-15 13:20:53 +08:00
LiJianZhao e6c320539c dev 2025-05-15 13:20:43 +08:00
3 changed files with 72 additions and 3 deletions

View File

@ -144,6 +144,8 @@ import Mask from "@/components/common/Mask.vue";
const isShow = ref<any>(false) const isShow = ref<any>(false)
const emit = defineEmits(['close']) const emit = defineEmits(['close'])
const exit = () => { const exit = () => {
initFormData()
tableList.value = []
isShow.value = false isShow.value = false
emit('close') emit('close')
} }
@ -154,6 +156,14 @@ const formData = ref({
username: "", username: "",
remark: '' remark: ''
}) })
const initFormData = () => {
formData.value = {
useUserId: null,
name: '',
username: "",
remark: ''
}
}
interface Inventory { interface Inventory {
goodId: string | number; goodId: string | number;

View File

@ -34,8 +34,38 @@
<div class="content"> <div class="content">
<el-table :data="dataList" style="width: 100%;height: 100%" @row-click="rowClick" :header-cell-style="{ backgroundColor: '#F1F5FB' }"> <el-table :data="dataList" style="width: 100%;height: 100%" @row-click="rowClick" :header-cell-style="{ backgroundColor: '#F1F5FB' }">
<el-table-column prop="useCode" label="单号" width="180"></el-table-column> <el-table-column prop="useCode" label="单号" width="180"></el-table-column>
<el-table-column prop="status" label="状态" width="180"></el-table-column> <el-table-column prop="status" label="状态" width="180">
<el-table-column prop="useUserId" label="领用人" width="180"></el-table-column> <template #default="scope">
{{ scope.row.status==1?"已完成":scope.row.status==0?"未完成":"未知" }}
</template>
</el-table-column>
<el-table-column prop="kindCount" label="品种" width="180">
<template #default="scope">
{{ scope.row.kindCount}}
</template>
</el-table-column>
<el-table-column label="盈亏数量" prop="changeTotalWholeCount" width="100">
<template #default="scope">
{{scope.row.changeTotalWholeCount > 0 ? '+' : ''}}{{ scope.row.changeTotalWholeCount }}
</template>
</el-table-column>
<el-table-column label="盈亏金额(进价)" prop="totalPurchasePrice" width="200">
<template #default="scope">
{{scope.row.totalPurchasePrice > 0 ? '+' : ''}}{{ scope.row.totalPurchasePrice }}
</template>
</el-table-column>
<el-table-column label="盈亏金额(售价)" prop="totalSalePrice" width="200">
<template #default="scope">
{{scope.row.totalSalePrice > 0 ? '+' : ''}}{{ scope.row.totalSalePrice }}
</template>
</el-table-column>
<el-table-column label="领用人" prop="applyUserName" width="100">
<template #default="scope">
{{ scope.row.applyUserName }}
</template>
</el-table-column>
<el-table-column prop="createDatetime" label="创建时间" width="300"> <el-table-column prop="createDatetime" label="创建时间" width="300">
<template #default="scope"> <template #default="scope">
{{ formatDate(scope.row.createDatetime) }} {{ formatDate(scope.row.createDatetime) }}

View File

@ -36,7 +36,36 @@
<el-table :data="tableData" @cell-click="editCheck" style="height: 100%" :header-cell-style="{ backgroundColor: '#F1F5FB' }"> <el-table :data="tableData" @cell-click="editCheck" style="height: 100%" :header-cell-style="{ backgroundColor: '#F1F5FB' }">
<el-table-column label="订单号" prop="code" width="250"> <el-table-column label="订单号" prop="code" width="250">
</el-table-column> </el-table-column>
<el-table-column label="状态" prop="state" width="250"></el-table-column> <el-table-column label="状态" prop="state" width="250">
<template #default="scope">
{{ scope.row.state == 1 ? '已完成' : scope.row.state == 0 ? '进行中' : '未知' }}
</template>
</el-table-column>
<el-table-column label="品种" prop="kindCount" width="100">
<template #default="scope">
{{ scope.row.kindCount }}
</template>
</el-table-column>
<el-table-column label="盈亏数量" prop="changeTotalWholeCount" width="100">
<template #default="scope">
{{scope.row.changeTotalWholeCount > 0 ? '+' : ''}}{{ scope.row.changeTotalWholeCount }}
</template>
</el-table-column>
<el-table-column label="盈亏金额(进价)" prop="totalPurchasePrice" width="200">
<template #default="scope">
{{scope.row.totalPurchasePrice > 0 ? '+' : ''}}{{ scope.row.totalPurchasePrice }}
</template>
</el-table-column>
<el-table-column label="盈亏金额(售价)" prop="totalSalePrice" width="200">
<template #default="scope">
{{scope.row.totalSalePrice > 0 ? '+' : ''}}{{ scope.row.totalSalePrice }}
</template>
</el-table-column>
<el-table-column label="盘点人" prop="checkUserName" width="100">
<template #default="scope">
{{ scope.row.checkUserName }}
</template>
</el-table-column>
<el-table-column label="创建时间" prop="createDatetime" width="250"> <el-table-column label="创建时间" prop="createDatetime" width="250">
<template #default="scope"> <template #default="scope">
{{ formatDate(scope.row.createDatetime) }} {{ formatDate(scope.row.createDatetime) }}