过滤条件

This commit is contained in:
2024-06-05 18:44:15 +08:00
parent 337f940344
commit 371736a109
5 changed files with 34 additions and 13 deletions

View File

@@ -543,4 +543,7 @@ uni-button[disabled]:not([type]), uni-button[disabled][type=default] {
} }
.uni-select__selector-empty { .uni-select__selector-empty {
color: #fff color: #fff
}
.uni-select__selector-item:hover {
background-color: #3F6ACA !important;
} }

View File

@@ -34,7 +34,7 @@
return { return {
intervalId: null, intervalId: null,
interTime: this.$store.getters.setTime, interTime: this.$store.getters.setTime,
userName: this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).username : '', userName: this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).person_name : '',
menuList: [] menuList: []
}; };
}, },

View File

@@ -2,9 +2,14 @@
<view class="content"> <view class="content">
<nav-bar title="调拨维护"></nav-bar> <nav-bar title="调拨维护"></nav-bar>
<view class="search-confirm-wrap"> <view class="search-confirm-wrap">
<view class="zd-row jcflexstart"> <view class="zd-row">
<view class="zd-col-8"><search-box v-model="val1" /></view> <view class="zd-col-19 zd-row">
<button class="confirm-button" @tap="toSearch">查询</button> <view class="zd-col-10"><search-box v-model="val1" /></view>
<view class="zd-col-10 select_wraper">
<zxz-uni-data-select placeholder="请选择仓库名称" v-model="value1" filterable :localdata="range1"></zxz-uni-data-select>
</view>
<button class="confirm-button" @tap="toSearch">查询</button>
</view>
</view> </view>
</view> </view>
<view class="zd-row jcflexstart table-title_wraper">调拨单</view> <view class="zd-row jcflexstart table-title_wraper">调拨单</view>
@@ -230,7 +235,9 @@
date: '', date: '',
show: false, show: false,
modalObj: {}, modalObj: {},
disabled: false disabled: false,
value1: '',
range1: []
}; };
}, },
created () { created () {
@@ -246,6 +253,7 @@
this.$set(e, 'text', e.ckmc) this.$set(e, 'text', e.ckmc)
this.$set(e, 'value', e.ckbm) this.$set(e, 'value', e.ckbm)
}) })
this.range1 = [...this.range]
this.toSearch() this.toSearch()
} }
}, },
@@ -262,7 +270,7 @@
}, },
// 一级表格接口 // 一级表格接口
async _allocationPage () { async _allocationPage () {
let res = await allocationPage(this.val1, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '') let res = await allocationPage(this.val1, this.value1, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '')
if (res.code === 1) { if (res.code === 1) {
this.dataList1 = [...res.result] this.dataList1 = [...res.result]
this.totalCount1 = Number(res.totalElements) this.totalCount1 = Number(res.totalElements)

View File

@@ -2,9 +2,14 @@
<view class="content"> <view class="content">
<nav-bar title="收货确认"></nav-bar> <nav-bar title="收货确认"></nav-bar>
<view class="search-confirm-wrap"> <view class="search-confirm-wrap">
<view class="zd-row jcflexstart"> <view class="zd-row">
<view class="zd-col-8"><search-box v-model="val1" /></view> <view class="zd-col-19 zd-row">
<button class="confirm-button" @tap="toSearch">查询</button> <view class="zd-col-10"><search-box v-model="val1" /></view>
<view class="zd-col-10 select_wraper">
<zxz-uni-data-select placeholder="请选择仓库名称" v-model="value1" filterable :localdata="range1"></zxz-uni-data-select>
</view>
<button class="confirm-button" @tap="toSearch">查询</button>
</view>
</view> </view>
</view> </view>
<view class="zd-row jcflexstart table-title_wraper">收货确认</view> <view class="zd-row jcflexstart table-title_wraper">收货确认</view>
@@ -202,7 +207,9 @@
range: [], range: [],
show: false, show: false,
modalObj: {}, modalObj: {},
disabled: false disabled: false,
value1: '',
range1: []
}; };
}, },
created () { created () {
@@ -218,6 +225,7 @@
this.$set(e, 'text', e.ckmc) this.$set(e, 'text', e.ckmc)
this.$set(e, 'value', e.ckbm) this.$set(e, 'value', e.ckbm)
}) })
this.range1 = [...this.range]
this.toSearch() this.toSearch()
} }
}, },
@@ -234,7 +242,7 @@
}, },
// 一级表格接口 // 一级表格接口
async _receiptPage () { async _receiptPage () {
let res = await receiptPage(this.val1, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '') let res = await receiptPage(this.val1, this.value1, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '')
if (res.code === 1) { if (res.code === 1) {
this.dataList1 = [...res.result] this.dataList1 = [...res.result]
this.totalCount1 = Number(res.totalElements) this.totalCount1 = Number(res.totalElements)

View File

@@ -69,10 +69,11 @@ export const getWarehouseInfo = () => request({
data: {} data: {}
}) })
// 2.查询调拨单据 // 2.查询调拨单据
export const allocationPage = (fuzzy, page, size) => request({ export const allocationPage = (fuzzy, ckbm, page, size) => request({
url:'api/allocationBill/allocationPage', url:'api/allocationBill/allocationPage',
data: { data: {
fuzzy: fuzzy, fuzzy: fuzzy,
ckbm: ckbm,
page: page, page: page,
size: size size: size
} }
@@ -101,10 +102,11 @@ export const allocationBillConfirm = (arr) => request({
* 收货确认 * 收货确认
*/ */
// 1.收货单据分页 // 1.收货单据分页
export const receiptPage = (fuzzy, page, size) => request({ export const receiptPage = (fuzzy, ckbm, page, size) => request({
url:'api/receiptBill/receiptPage', url:'api/receiptBill/receiptPage',
data: { data: {
fuzzy: fuzzy, fuzzy: fuzzy,
ckbm: ckbm,
page: page, page: page,
size: size size: size
} }