盘点
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
<input type="text" class="filter_input" v-model="val1">
|
||||
</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 class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
@@ -54,7 +60,7 @@
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import {checkQuery} from '@/utils/getData1.js'
|
||||
import {checkQuery, checkgetStor} from '@/utils/getData1.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -65,18 +71,30 @@
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
options: [],
|
||||
index: '',
|
||||
disabled1: false
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._checkgetStor()
|
||||
this._checkQuery()
|
||||
},
|
||||
methods: {
|
||||
/** 初始化查询 */
|
||||
async _checkQuery () {
|
||||
let res = await checkQuery(this.val1)
|
||||
let res = await checkQuery(this.val1, this.index)
|
||||
this.dataList = [...res.data]
|
||||
},
|
||||
/** 选择器 */
|
||||
selectChange(e) {
|
||||
this.index = e
|
||||
},
|
||||
/** 仓库下拉框查询 */
|
||||
async _checkgetStor () {
|
||||
let res = await checkgetStor()
|
||||
this.options = [...res.data]
|
||||
},
|
||||
toPandian () {
|
||||
if (this.pkId) {
|
||||
uni.navigateTo({
|
||||
|
||||
@@ -187,10 +187,11 @@ export const emptyVehiclepointStatusQuery = (pcode) => request({
|
||||
* 盘点管理
|
||||
*/
|
||||
// 1.1盘点单查询
|
||||
export const checkQuery = (ccode) => request({
|
||||
export const checkQuery = (ccode, sid) => request({
|
||||
url: 'api/pda/check/checkQuery',
|
||||
data: {
|
||||
check_code: ccode
|
||||
check_code: ccode,
|
||||
stor_id: sid
|
||||
}
|
||||
})
|
||||
// 1.2盘点单明细查询
|
||||
@@ -215,4 +216,9 @@ export const confirmCheck = (crows, ccode) => request({
|
||||
check_rows: crows,
|
||||
check_code: ccode
|
||||
}
|
||||
})
|
||||
// 1.5仓库下拉框
|
||||
export const checkgetStor = (crows, ccode) => request({
|
||||
url: 'api/pda/check/getStor',
|
||||
data: {}
|
||||
})
|
||||
Reference in New Issue
Block a user