Commit 28b0a08b by Tianqing Liu

feat: 增加批次功能

1 parent 34a0f2c8
......@@ -35,6 +35,9 @@
<span style="padding: 0 4px"></span>
<a-input-number v-model:value="queryForm.maxNum" :min="queryForm.maxNum||0" :max="100000000" style="width: 140px"/>
</a-form-item>
<a-form-item label="批次ID:" style="padding: 5px 0">
<a-input v-model:value="queryForm.batchId" style="width: 240px"/>
</a-form-item>
<a-form-item style="padding: 5px 0">
<a-button type="primary" @click="clickSearch" :loading="isLoading">查询</a-button>
</a-form-item>
......@@ -128,6 +131,7 @@
endTime: '23:59:59',
minNum: 0,
maxNum: 100000,
batchId: '',
})
const searchCondition = ref({})
if (window.localStorage.getItem('searchCondition')) {
......@@ -137,6 +141,7 @@
queryForm.minNum = searchCondition.value.minNum || 0;
queryForm.maxNum = searchCondition.value.maxNum || 100000;
queryForm.date = searchCondition.value.date;
queryForm.batchId = searchCondition.value.batchId || ''
}
const onPageNumChange = function(num) {
pageNum.value = num
......@@ -255,6 +260,7 @@
const confirmSearch = function() {
isLoading.value = true
const rawData = toRaw(queryForm)
// 用于请求接口,查询条件
const data = filterEmptyValueInObject({
mallId: rawData.plaza_id,
zoneId: rawData.zone_id.toString(),
......@@ -265,7 +271,9 @@
maxNum: rawData.maxNum,
pageNum: pageNum.value,
pageSize: pageSize.value,
batchId: rawData.batchId,
})
// 用于localStorage存储
const storageData = filterEmptyValueInObject({
account_id: rawData.account_id,
plaza_id: [rawData.plaza_id],
......@@ -275,6 +283,7 @@
maxNum: rawData.maxNum,
startTime: rawData.startTime,
endTime: rawData.endTime,
batchId: rawData.batchId,
})
let searchCondition = JSON.parse(window.localStorage.getItem('searchCondition'));
let newSearchCondition = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!