修改功能
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<span class="filter_label">仓库</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<uni-data-select v-model="index" :localdata="options"></uni-data-select>
|
||||
<uni-data-select v-model="formData.storCode" :localdata="options"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
@@ -17,7 +17,7 @@
|
||||
<span class="filter_label">物料编码</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<input type="text" class="filter_input" v-model="val1">
|
||||
<input type="text" class="filter_input" v-model="formData.materialCode">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
@@ -25,7 +25,7 @@
|
||||
<span class="filter_label">载具编码</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<input type="text" class="filter_input" v-model="val3">
|
||||
<input type="text" class="filter_input" v-model="formData.vehicleCode">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
@@ -33,7 +33,7 @@
|
||||
<span class="filter_label">仓位编码</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<input type="text" class="filter_input" v-model="val4">
|
||||
<input type="text" class="filter_input" v-model="formData.structCode">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
@@ -41,7 +41,7 @@
|
||||
<span class="filter_label">物料批次</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<input type="text" class="filter_input" v-model="val2">
|
||||
<input type="text" class="filter_input" v-model="formData.pcsn">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -93,12 +93,14 @@
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
formData: {
|
||||
storCode: 'FStockId',
|
||||
materialCode: '',
|
||||
vehicleCode: '',
|
||||
structCode: '',
|
||||
pcsn: ''
|
||||
},
|
||||
options: [{value: 'FStockPallet', text: '托盘库'}, {value: 'FStockId', text: '料箱库'}],
|
||||
index: 'FStockId',
|
||||
val2: '',
|
||||
val3: '',
|
||||
val4: '',
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
@@ -116,6 +118,9 @@
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
if (this.$store.getters.formData !== '') {
|
||||
this.formData = this.$store.getters.formData
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
searchList () {
|
||||
@@ -124,7 +129,7 @@
|
||||
this._structattrPage()
|
||||
},
|
||||
async _structattrPage () {
|
||||
let res = await structattrPage(this.pageNum + '', this.pageSize + '', this.index, this.val1, true, this.val2, this.val3, this.val4)
|
||||
let res = await structattrPage(this.pageNum + '', this.pageSize + '', this.formData.storCode, this.formData.materialCode, true, this.formData.pcsn, this.formData.vehicleCode, this.formData.structCode)
|
||||
if (res.code === '200') {
|
||||
this.totalCount = res.totalElements
|
||||
if (res.totalElements > 0) {
|
||||
@@ -156,8 +161,14 @@
|
||||
this.pkObj = this.pkId === e.id ? e : {}
|
||||
},
|
||||
toEmpty () {
|
||||
this.index = ''
|
||||
this.val1 = ''
|
||||
this.formData = {
|
||||
storCode: 'FStockId',
|
||||
materialCode: '',
|
||||
vehicleCode: '',
|
||||
structCode: '',
|
||||
pcsn: ''
|
||||
}
|
||||
this.$store.dispatch('setFormData', '')
|
||||
this.dataList = []
|
||||
this.pageNum = 1
|
||||
this.pkId = ''
|
||||
@@ -165,6 +176,7 @@
|
||||
toSure () {
|
||||
if (this.pkId) {
|
||||
this.$store.dispatch('setPublicObj', this.pkObj)
|
||||
this.$store.dispatch('setFormData', this.formData)
|
||||
uni.navigateBack()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user