修改
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
:value="value"
|
:value="value"
|
||||||
:focus="focusState"
|
:focus="focusState"
|
||||||
@blur="handleBlur($event)"
|
@blur="handleBlur($event)"
|
||||||
|
@input="handleInput($event)"
|
||||||
@confirm="handleChange($event)">
|
@confirm="handleChange($event)">
|
||||||
<view class="zd-row buttons_wraper">
|
<view class="zd-row buttons_wraper">
|
||||||
<!-- <uni-icons @tap="toDel" type="closeempty" size="20" color="#4e6ef2"></uni-icons> -->
|
<!-- <uni-icons @tap="toDel" type="closeempty" size="20" color="#4e6ef2"></uni-icons> -->
|
||||||
@@ -51,6 +52,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleInput($event) {
|
||||||
|
this.cur = $event.detail.value
|
||||||
|
this.$emit('input', this.cur)
|
||||||
|
},
|
||||||
handleChange ($event) {
|
handleChange ($event) {
|
||||||
this.cur = $event.target.value
|
this.cur = $event.target.value
|
||||||
this.$emit('input', this.cur)
|
this.$emit('input', this.cur)
|
||||||
|
|||||||
@@ -8,25 +8,25 @@
|
|||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">站点信息</span>
|
<span class="filter_label">站点信息</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-17">
|
<view class="zd-col-12">
|
||||||
<search-box
|
<search-box
|
||||||
v-model="val2"
|
v-model="val2"
|
||||||
:seaShow="true"
|
|
||||||
@handleChange="handleChange"
|
@handleChange="handleChange"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0" @tap="_getVehicleMaterial(val2)">查询</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">载具编码</span>
|
<span class="filter_label">载具编码</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-17">
|
<view class="zd-col-12">
|
||||||
<search-box
|
<search-box
|
||||||
v-model="val1"
|
v-model="val1"
|
||||||
:seaShow="true"
|
|
||||||
@handleChange="handleChange"
|
@handleChange="handleChange"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0" @tap="_getVehicleMaterial(val1)">查询</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
@@ -119,6 +119,9 @@
|
|||||||
},
|
},
|
||||||
selectChange (e) {
|
selectChange (e) {
|
||||||
this.index = e
|
this.index = e
|
||||||
|
if (e) {
|
||||||
|
this._getVehicleMaterial(e)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleChange (e) {
|
handleChange (e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
@@ -127,7 +130,7 @@
|
|||||||
},
|
},
|
||||||
async _getVehicleMaterial (e) {
|
async _getVehicleMaterial (e) {
|
||||||
try {
|
try {
|
||||||
let res = await getVehicleMaterial(this.val1, this.val2, this.index)
|
let res = await getVehicleMaterial(e)
|
||||||
if (res) {
|
if (res) {
|
||||||
this.currentData = res
|
this.currentData = res
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user