This commit is contained in:
2022-12-01 21:59:36 +08:00
parent f5d78a980a
commit 77d849739a
2 changed files with 28 additions and 4 deletions

View File

@@ -9,6 +9,12 @@
<input type="text" class="filter_input" v-model="val1"> <input type="text" class="filter_input" v-model="val1">
</view> </view>
</view> </view>
<view class="filter_item">
<view class="filter_label">仓库</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
</view>
</view>
</view> </view>
<view class="zd_wrapper grid-wraper"> <view class="zd_wrapper grid-wraper">
<view class="slide_new"> <view class="slide_new">
@@ -54,7 +60,7 @@
<script> <script>
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import {checkQuery} from '@/utils/getData1.js' import {checkQuery, checkgetStor} from '@/utils/getData1.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -65,18 +71,30 @@
dataList: [], dataList: [],
pkId: '', pkId: '',
pkObj: {}, pkObj: {},
options: [],
index: '',
disabled1: false disabled1: false
}; };
}, },
created () { created () {
this._checkgetStor()
this._checkQuery() this._checkQuery()
}, },
methods: { methods: {
/** 初始化查询 */ /** 初始化查询 */
async _checkQuery () { async _checkQuery () {
let res = await checkQuery(this.val1) let res = await checkQuery(this.val1, this.index)
this.dataList = [...res.data] this.dataList = [...res.data]
}, },
/** 选择器 */
selectChange(e) {
this.index = e
},
/** 仓库下拉框查询 */
async _checkgetStor () {
let res = await checkgetStor()
this.options = [...res.data]
},
toPandian () { toPandian () {
if (this.pkId) { if (this.pkId) {
uni.navigateTo({ uni.navigateTo({

View File

@@ -187,10 +187,11 @@ export const emptyVehiclepointStatusQuery = (pcode) => request({
* 盘点管理 * 盘点管理
*/ */
// 1.1盘点单查询 // 1.1盘点单查询
export const checkQuery = (ccode) => request({ export const checkQuery = (ccode, sid) => request({
url: 'api/pda/check/checkQuery', url: 'api/pda/check/checkQuery',
data: { data: {
check_code: ccode check_code: ccode,
stor_id: sid
} }
}) })
// 1.2盘点单明细查询 // 1.2盘点单明细查询
@@ -215,4 +216,9 @@ export const confirmCheck = (crows, ccode) => request({
check_rows: crows, check_rows: crows,
check_code: ccode check_code: ccode
} }
})
// 1.5仓库下拉框
export const checkgetStor = (crows, ccode) => request({
url: 'api/pda/check/getStor',
data: {}
}) })