修改
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_item is-required">
|
||||
<view class="filter_label">{{$t('filter.area')}}</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index1" :placeholder="$t('uni.dataSelect.placeholder')" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||
@@ -18,6 +18,16 @@
|
||||
<uni-data-select v-model="index2" :placeholder="$t('uni.dataSelect.placeholder')" :localdata="options2" @change="selectChange2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item is-required">
|
||||
<view class="filter_label">{{$t('filter.quantity')}}</view>
|
||||
<view class="filter_input_wraper">
|
||||
<NumberInput
|
||||
v-model="val1"
|
||||
input-class="filter_input"
|
||||
mode="integer"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
@@ -29,6 +39,7 @@
|
||||
<th>{{$t('grid.coretype')}}</th>
|
||||
<th>{{$t('grid.corename')}}</th>
|
||||
<th>{{$t('filter.quantity')}}</th>
|
||||
<th>{{$t('grid.signnum')}}</th>
|
||||
<th>{{$t('filter.point')}}</th>
|
||||
<th>{{$t('filter.area')}}</th>
|
||||
<th>{{$t('grid.areaname')}}</th>
|
||||
@@ -41,6 +52,7 @@
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.total_num}}</td>
|
||||
<td>{{e.sign_num}}</td>
|
||||
<td>{{e.point_code}}</td>
|
||||
<td>{{e.product_area}}</td>
|
||||
<td>{{e.product_area_name}}</td>
|
||||
@@ -52,7 +64,7 @@
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-5 btn-submit btn-default letter-30" @tap="clearUp">{{$t('button.clear')}}</button>
|
||||
<button class="zd-col-8 btn-submit btn-success letter-30" :class="{'btn-info': !index2}" :disabled="disabled" @tap="handleConfirm">{{$t('button.stockup')}}</button>
|
||||
<button class="zd-col-8 btn-submit btn-success letter-30" :class="{'btn-info': !val1 || !index1 || !index2}" :disabled="disabled" @tap="handleConfirm">{{$t('button.stockup')}}</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" @tap="_showPapervehicleView">{{$t('button.refresh')}}</button>
|
||||
</view>
|
||||
<up-top ref="UT" :scrollTop="top"></up-top>
|
||||
@@ -73,6 +85,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
val1: '',
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
// val3: '',
|
||||
@@ -126,7 +139,7 @@
|
||||
this.dataList = [...res.rows]
|
||||
},
|
||||
async handleConfirm() {
|
||||
if (!this.index1 || !this.index2) {
|
||||
if (this.val1 || !this.index1 || !this.index2) {
|
||||
return
|
||||
}
|
||||
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
|
||||
@@ -161,7 +174,7 @@
|
||||
this.disabled = false
|
||||
},
|
||||
async _showPapervehicleView () {
|
||||
let res = await showPapervehicleView(this.index1, this.index2)
|
||||
let res = await showPapervehicleView(this.index1, this.index2, this.val1)
|
||||
if (res) {
|
||||
this.dataList = [...res.rows]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user