子卷重量维护加提示

This commit is contained in:
2025-01-08 10:04:00 +08:00
parent 5ce6209db5
commit 638e873f6a

View File

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