单据出库修改
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<!-- 单据列表 -->
|
||||
<nav-bar :title="title" :inner="true"></nav-bar>
|
||||
<nav-bar title="单据列表"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-9">
|
||||
<span class="filter_label">出库单类型</span>
|
||||
</view>
|
||||
<view class="zd-col-24 filter_select">
|
||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">单据编码</span>
|
||||
@@ -64,7 +72,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {outStorageOrderList} from '@/utils/getData2.js'
|
||||
import {outStorageOrder, outStorageOrderList} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -73,6 +81,8 @@
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options: [],
|
||||
index: '',
|
||||
id: '',
|
||||
code: '',
|
||||
dataList: [],
|
||||
@@ -94,25 +104,41 @@
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
this.id = options.id
|
||||
this._outStorageOrderList()
|
||||
},
|
||||
created () {
|
||||
this._outStorageOrder()
|
||||
},
|
||||
methods: {
|
||||
/** 下拉框*/
|
||||
async _outStorageOrder () {
|
||||
let res = await outStorageOrder()
|
||||
this.options = [...res]
|
||||
},
|
||||
selectChange (e) {
|
||||
this.index = e
|
||||
if (e) {
|
||||
this.dataList = []
|
||||
this.pageNum = 1
|
||||
this.pkId = ''
|
||||
this._outStorageOrderList(e, this.code)
|
||||
}
|
||||
},
|
||||
handleChange (e) {
|
||||
if (e) {
|
||||
this.dataList = []
|
||||
this.pageNum = 1
|
||||
this.pkId = ''
|
||||
this._outStorageOrderList(e)
|
||||
this._outStorageOrderList(this.index, e)
|
||||
}
|
||||
},
|
||||
seachList () {
|
||||
this.dataList = []
|
||||
this.pageNum = 1
|
||||
this.pkId = ''
|
||||
this._outStorageOrderList(this.code)
|
||||
this._outStorageOrderList(this.index, this.code)
|
||||
},
|
||||
async _outStorageOrderList (e) {
|
||||
let res = await outStorageOrderList(this.pageNum + '', this.pageSize + '', this.id, e)
|
||||
async _outStorageOrderList (index, e) {
|
||||
let res = await outStorageOrderList(this.pageNum + '', this.pageSize + '', index, e)
|
||||
if (res.code === '200') {
|
||||
this.totalCount = res.totalElements
|
||||
if (res.totalElements > 0) {
|
||||
@@ -133,7 +159,7 @@
|
||||
this.status = 'loading'
|
||||
setTimeout(() => {
|
||||
this.pageNum++
|
||||
this._outStorageOrderList(this.code)
|
||||
this._outStorageOrderList(this.index, this.code)
|
||||
}, 1000)
|
||||
} else { //停止加载
|
||||
this.status = 'noMore'
|
||||
@@ -146,7 +172,9 @@
|
||||
toSure () {
|
||||
if (this.pkId) {
|
||||
this.$store.dispatch('setPublicObj', this.pkObj)
|
||||
uni.navigateBack()
|
||||
uni.navigateTo({
|
||||
url: '/pages/outbound/bill-out-store?title=单据出库'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user