Merge remote-tracking branch 'origin/main'

This commit is contained in:
LiJianZhao 2025-04-27 11:28:43 +08:00
commit 1ea523e4d5
4 changed files with 163 additions and 11 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<el-descriptions title="新增领用" border label-width="100"> <el-descriptions border label-width="100">
<el-descriptions-item label="领用人" width="200"> <el-descriptions-item label="领用人" width="200">
<el-input v-model="formData.name" disabled></el-input> <el-input v-model="formData.name" disabled></el-input>
</el-descriptions-item> </el-descriptions-item>
@ -8,7 +8,7 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<GoodsSearch @selectCallBack="goodsSelectCallBack"></GoodsSearch> <GoodsSearch @selectCallBack="goodsSelectCallBack"></GoodsSearch>
<table class="simple-table" style="margin-top: 15px;"> <table class="simple-table" style="margin-top: 15px">
<thead> <thead>
<tr> <tr>
<th>名称</th> <th>名称</th>
@ -270,6 +270,81 @@ onMounted(() => {
}) })
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.simple-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
border: none;
color: #606266;
thead {
background-color: #f5f7fa;
th {
padding: 12px 0;
text-align: left;
font-weight: bold; /* 表头加粗 */
font-size: 14px; /* 表头字号 */
border-bottom: 1px solid #ebeef5;
}
}
tbody {
tr:hover {
background-color: #f5f7fa; /* 悬停效果 */
}
td {
padding: 12px 0;
text-align: left;
font-size: 14px; /* 单元格字号 */
border-bottom: 1px solid #ebeef5;
}
}
}
.table-select {
.el-select-dropdown__item {
padding: 0 !important;
height: auto;
}
//
.select-header {
display: flex;
padding: 8px 16px;
background: #f5f7fa;
border-bottom: 1px solid #ebeef5;
span {
flex: 1;
min-width: 110px;
font-weight: bold;
}
}
//
.option-row {
display: flex;
padding: 8px 16px;
span {
flex: 1;
min-width: 110px;
}
}
}
.remark {
//
:deep(.el-input-group__prepend) {
background-color: #fffdec;
}
//
:deep(.el-input__wrapper) {
background-color: #fffdec;
}
}
.btn { .btn {
margin-top: 5px; margin-top: 5px;
} }

View File

@ -1,5 +1,5 @@
<template> <template>
<el-descriptions title="详情领用" border label-width="100"> <el-descriptions border label-width="100">
<el-descriptions-item label="领用人" width="200"> <el-descriptions-item label="领用人" width="200">
<el-input v-model="formData.name" disabled></el-input> <el-input v-model="formData.name" disabled></el-input>
</el-descriptions-item> </el-descriptions-item>
@ -7,7 +7,7 @@
<el-input v-model="formData.remark" disabled></el-input> <el-input v-model="formData.remark" disabled></el-input>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<table class="simple-table" style="margin-top: 15px;"> <table class="simple-table" style="margin-top: 15px">
<thead> <thead>
<tr> <tr>
<th>名称</th> <th>名称</th>
@ -137,7 +137,9 @@ interface Inventory {
name?: string; name?: string;
trdnFlag?: number; trdnFlag?: number;
} }
const tableList = ref<Inventory[]>([]); const tableList = ref<Inventory[]>([]);
interface childCheck { interface childCheck {
id?: number, id?: number,
goodsId: number, goodsId: number,
@ -157,6 +159,7 @@ interface childCheck {
} }
const addLine = (row: any) => { const addLine = (row: any) => {
post('inventory/goods/getListByIds', {idList: row.selectList}).then((list: any) => { post('inventory/goods/getListByIds', {idList: row.selectList}).then((list: any) => {
let children = []; let children = [];
@ -209,6 +212,81 @@ onMounted(() => {
}) })
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.simple-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
border: none;
color: #606266;
thead {
background-color: #f5f7fa;
th {
padding: 12px 0;
text-align: left;
font-weight: bold; /* 表头加粗 */
font-size: 14px; /* 表头字号 */
border-bottom: 1px solid #ebeef5;
}
}
}
tbody {
tr:hover {
background-color: #f5f7fa; /* 悬停效果 */
}
td {
padding: 12px 0;
text-align: left;
font-size: 14px; /* 单元格字号 */
border-bottom: 1px solid #ebeef5;
}
}
.table-select {
.el-select-dropdown__item {
padding: 0 !important;
height: auto;
}
//
.select-header {
display: flex;
padding: 8px 16px;
background: #f5f7fa;
border-bottom: 1px solid #ebeef5;
span {
flex: 1;
min-width: 110px;
font-weight: bold;
}
}
//
.option-row {
display: flex;
padding: 8px 16px;
span {
flex: 1;
min-width: 110px;
}
}
}
.remark {
//
:deep(.el-input-group__prepend) {
background-color: #fffdec;
}
//
:deep(.el-input__wrapper) {
background-color: #fffdec;
}
}
.btn { .btn {
margin-top: 5px; margin-top: 5px;
} }

View File

@ -61,9 +61,8 @@ const success = () => {
} }
const error = () => { const error = () => {
ElMessageBox.alert('签到失败,我们将已非签到模式启动系统', '签到提示', { ElMessageBox.alert('签到失败,我们将已非签到模式启动系统', '签到提示', {
// if you want to disable its autofocus
// autofocus: false,
confirmButtonText: '确定', confirmButtonText: '确定',
showClose: false,
callback: (action: Action) => { callback: (action: Action) => {
router.push("/home/index") router.push("/home/index")
}, },

View File

@ -28,10 +28,10 @@
/> />
</div> </div>
</div> </div>
<Mask :width="1200" :height="600" :top="100" :is-show="is_add" @close="is_add=false" title="新增"> <Mask :width="1200" :height="600" :top="100" :is-show="is_add" @close="is_add=false" title="新增领用">
<AddApply @close="closeAddApply"/> <AddApply @close="closeAddApply"/>
</Mask> </Mask>
<Mask :width="1200" :height="600" :top="100" :is-show="is_detail" @close="is_detail=false" title="编辑"> <Mask :width="1200" :height="600" :top="100" :is-show="is_detail" @close="is_detail=false" title="查看领用">
<DetailApply :id="id" @close="closeDetailApply"/> <DetailApply :id="id" @close="closeDetailApply"/>
</Mask> </Mask>
</div> </div>