dev
This commit is contained in:
parent
4281c34423
commit
a270fd8f67
|
|
@ -30,7 +30,7 @@ const filteredData = computed(() => {
|
|||
|
||||
// 分页相关
|
||||
const currentPage = ref(1)
|
||||
const pageSize = ref(10)
|
||||
const pageSize = ref(20)
|
||||
const total = ref(0)
|
||||
// 搜索条件
|
||||
const code = ref('')
|
||||
|
|
@ -39,12 +39,13 @@ onMounted(() => {
|
|||
})
|
||||
let init = () => {
|
||||
const query = {
|
||||
page: 1,
|
||||
pageSize: 20,
|
||||
pageNum: currentPage.value,
|
||||
pageSize: pageSize.value,
|
||||
code: code.value
|
||||
}
|
||||
post("social/upload/get3501List", {query: query}).then((res: any) => {
|
||||
tableData.value = res.list
|
||||
total.value = res.total_count
|
||||
})
|
||||
}
|
||||
let changePage = (value: number) => {
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ const value1 = ref([])
|
|||
|
||||
// 分页相关
|
||||
const currentPage = ref(1)// 当前页码
|
||||
const pageSize = ref(10)// 每页显示的记录数
|
||||
const pageSize = ref(20)// 每页显示的记录数
|
||||
const total = ref(0)
|
||||
|
||||
// 定义 type 与 typeName
|
||||
|
|
@ -182,8 +182,8 @@ onMounted(() => {
|
|||
|
||||
let init = () => {
|
||||
const query = {
|
||||
page: 1,
|
||||
pageSize: 20,
|
||||
pageNum: currentPage.value,
|
||||
pageSize: pageSize.value,
|
||||
socialType: Number(searchInfo.value.socialType) || null,
|
||||
uploadStatus: searchStatus.value.uploadStatus || null,
|
||||
createTimeBefore: value1.value ? formatDate(value1.value[0]) : null,
|
||||
|
|
@ -191,6 +191,7 @@ let init = () => {
|
|||
}
|
||||
post("social/upload/get3502List", {query: query}).then((res: any) => {
|
||||
tableData.value = res.list
|
||||
total.value = res.total_count
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -240,6 +241,7 @@ const formatDate = (isoStr: any) => {
|
|||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,8 +33,12 @@
|
|||
<el-table-column prop="name" label="商品名称"/>
|
||||
<el-table-column prop="number" label="进货,退货数量" show-overflow-tooltip>
|
||||
<template #default="{row}">
|
||||
<el-icon v-if="row.number<0" style="font-size: 9px"><Minus /></el-icon>
|
||||
<el-icon v-if="row.number>0" style="font-size: 9px"><Plus /></el-icon>
|
||||
<el-icon v-if="row.number<0" style="font-size: 9px">
|
||||
<Minus/>
|
||||
</el-icon>
|
||||
<el-icon v-if="row.number>0" style="font-size: 9px">
|
||||
<Plus/>
|
||||
</el-icon>
|
||||
<span>
|
||||
<template v-if="row.number!=0">
|
||||
{{ Math.abs(row.number) }}{{ row.packagingUnit }}
|
||||
|
|
@ -82,13 +86,13 @@ import {Minus, Plus} from "@element-plus/icons-vue";
|
|||
const tableData = ref([])
|
||||
|
||||
// 搜索相关
|
||||
const searchInfo=ref<any>({
|
||||
})
|
||||
const searchStatus=ref<any>({
|
||||
})
|
||||
const searchInfo = ref<any>({})
|
||||
const searchStatus = ref<any>({})
|
||||
|
||||
interface TypeMapping {
|
||||
[key: number]: string;
|
||||
}
|
||||
|
||||
// 定义 type 与 typeName 的映射关系
|
||||
const socialTypeMapping: TypeMapping = {
|
||||
101: '调拨入库',
|
||||
|
|
@ -109,20 +113,21 @@ const uploadStatus = {
|
|||
|
||||
// 分页相关
|
||||
const currentPage = ref(1)
|
||||
const pageSize = ref(10)
|
||||
const pageSize = ref(20)
|
||||
const total = ref(0)
|
||||
onMounted(() => {
|
||||
init()
|
||||
})
|
||||
let init = () => {
|
||||
const query = {
|
||||
page: 1,
|
||||
pageSize: 20,
|
||||
pageNum: currentPage.value,
|
||||
pageSize: pageSize.value,
|
||||
socialType: searchInfo.value.socialType || null,
|
||||
uploadStatus: searchStatus.value.uploadStatus || null,
|
||||
}
|
||||
post("social/upload/get3503List", {query: query}).then((res: any) => {
|
||||
tableData.value = res.list
|
||||
total.value = res.total_count
|
||||
})
|
||||
}
|
||||
let changePage = (value: number) => {
|
||||
|
|
@ -151,6 +156,7 @@ const formatDate = (isoStr:any) => {
|
|||
|
||||
<style scoped lang="scss">
|
||||
@use "@/assets/scss/base.scss";
|
||||
|
||||
.container {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
|
|
@ -159,18 +165,21 @@ const formatDate = (isoStr:any) => {
|
|||
.top {
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: base.$background-color-base;
|
||||
justify-content: flex-end;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.el-select__wrapper) {
|
||||
height: 42px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import {Search} from "@element-plus/icons-vue";
|
|||
const tableData = ref([])
|
||||
// 分页相关
|
||||
const currentPage = ref(1)
|
||||
const pageSize = ref(10)
|
||||
const pageSize = ref(20)
|
||||
const total = ref(0)
|
||||
// 查询条件
|
||||
const code = ref('')
|
||||
|
|
@ -17,12 +17,13 @@ onMounted(() => {
|
|||
})
|
||||
let init = () => {
|
||||
const query = {
|
||||
page: 1,
|
||||
pageSize: 20,
|
||||
pageNum: currentPage.value,
|
||||
pageSize: pageSize.value,
|
||||
code: code.value
|
||||
}
|
||||
post("social/upload/get3505List", {query: query}).then((res: any) => {
|
||||
tableData.value = res.list
|
||||
total.value = res.total_count
|
||||
})
|
||||
}
|
||||
let changePage = (value: number) => {
|
||||
|
|
@ -129,7 +130,7 @@ const formatDate = (isoStr: any) => {
|
|||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: base.$background-color-base;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -185,7 +185,8 @@
|
|||
<el-pagination
|
||||
background
|
||||
layout="prev, pager, next"
|
||||
:page-count="pageNum"
|
||||
:current-page="pageNum"
|
||||
:page-size="pageSize"
|
||||
:total="total"
|
||||
@current-change="changePage"
|
||||
/>
|
||||
|
|
@ -309,7 +310,7 @@ onMounted(() => {
|
|||
let init = () => {
|
||||
const query = {
|
||||
pageNum: pageNum.value,// 当前页码
|
||||
pageSize: 1,// 每页显示条数
|
||||
pageSize: pageSize.value,// 每页显示条数
|
||||
}
|
||||
post("goods/goods/searchDetail", {query: query}).then((res: any) => {
|
||||
tableData.value = res.list
|
||||
|
|
@ -327,6 +328,7 @@ let open_edit = (type: number, id: number) => {
|
|||
//分页
|
||||
let total = ref(0)
|
||||
let pageNum = ref(1)
|
||||
const pageSize= ref(20)
|
||||
let changePage = (value: number) => {
|
||||
pageNum.value = value
|
||||
init()
|
||||
|
|
|
|||
|
|
@ -141,8 +141,9 @@
|
|||
<el-pagination
|
||||
background
|
||||
layout="prev, pager, next"
|
||||
:current-page="pageNum"
|
||||
:page-size="20"
|
||||
:total="total"
|
||||
:page-count="pageNum"
|
||||
@current-change="handleCurrentChange"
|
||||
>
|
||||
</el-pagination>
|
||||
|
|
|
|||
Loading…
Reference in New Issue