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