子卷重量维护加提示
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
<span class="filter_label">子卷号</span>
|
<span class="filter_label">子卷号</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<search-box v-model="val1" />
|
<search-box v-model="val1" @handleChange="handleChange"/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
@@ -28,6 +28,7 @@
|
|||||||
<input type="number" class="filter_input" v-model="val3">
|
<input type="number" class="filter_input" v-model="val3">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="msg_item">提示:{{obj.tip}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submitbar">
|
<view class="zd-row submitbar">
|
||||||
@@ -40,7 +41,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {doSubRollWeightBinding} from '@/utils/getData3.js'
|
import {doSubRollWeightBindingTip, doSubRollWeightBinding} from '@/utils/getData3.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -52,6 +53,7 @@
|
|||||||
val1: '',
|
val1: '',
|
||||||
val2: '',
|
val2: '',
|
||||||
val3: '',
|
val3: '',
|
||||||
|
obj: {tip: '-'},
|
||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -59,6 +61,13 @@
|
|||||||
this.title = options.title
|
this.title = options.title
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleChange (e) {
|
||||||
|
this._doSubRollWeightBindingTip(e)
|
||||||
|
},
|
||||||
|
async _doSubRollWeightBindingTip (e) {
|
||||||
|
let res = await doSubRollWeightBindingTip(e)
|
||||||
|
this.obj = res
|
||||||
|
},
|
||||||
async _doSubRollWeightBinding () {
|
async _doSubRollWeightBinding () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || (!this.val2 && !this.val3)) {
|
if (!this.val1 || (!this.val2 && !this.val3)) {
|
||||||
@@ -81,6 +90,7 @@
|
|||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
this.val3 = ''
|
this.val3 = ''
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
this.obj = {tip: '-'}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user