功能修改
This commit is contained in:
@@ -11,9 +11,18 @@
|
|||||||
<view class="zd-col-16">
|
<view class="zd-col-16">
|
||||||
<search-box
|
<search-box
|
||||||
v-model="val1"
|
v-model="val1"
|
||||||
|
@handleChange="handleChange1"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-8">
|
||||||
|
<span class="filter_label">取货确认状态</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-16">
|
||||||
|
<span v-show="val1" class="filter_input" style="font-size: 34rpx; color: #ff6a00; font-weight: 700;">{{status === '1' ? '已确认取货' : '未确认取货'}}</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
@@ -26,7 +35,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 {takeConfirm} from '@/utils/getData2.js'
|
import {getPointStatus, takeConfirm} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -36,6 +45,7 @@
|
|||||||
return {
|
return {
|
||||||
title: '',
|
title: '',
|
||||||
val1: '',
|
val1: '',
|
||||||
|
status: null,
|
||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -43,8 +53,25 @@
|
|||||||
this.title = options.title
|
this.title = options.title
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleChange1 (e) {
|
||||||
|
this._getPointStatus(e)
|
||||||
|
},
|
||||||
|
// 产线站点编码验证
|
||||||
|
async _getPointStatus (e) {
|
||||||
|
try {
|
||||||
|
let res = await getPointStatus(e)
|
||||||
|
if (res) {
|
||||||
|
this.val1 = res.code
|
||||||
|
this.status = res.point_location
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.val1 = ''
|
||||||
|
this.status = null
|
||||||
|
}
|
||||||
|
},
|
||||||
toEmpty () {
|
toEmpty () {
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
|
this.status = null
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
},
|
},
|
||||||
async _takeConfirm () {
|
async _takeConfirm () {
|
||||||
|
|||||||
Reference in New Issue
Block a user