功能修改
This commit is contained in:
@@ -11,9 +11,18 @@
|
||||
<view class="zd-col-16">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
@handleChange="handleChange1"
|
||||
/>
|
||||
</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 class="zd-row submit-bar">
|
||||
@@ -26,7 +35,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {takeConfirm} from '@/utils/getData2.js'
|
||||
import {getPointStatus, takeConfirm} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -36,6 +45,7 @@
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
status: null,
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
@@ -43,8 +53,25 @@
|
||||
this.title = options.title
|
||||
},
|
||||
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 () {
|
||||
this.val1 = ''
|
||||
this.status = null
|
||||
this.disabled = false
|
||||
},
|
||||
async _takeConfirm () {
|
||||
|
||||
Reference in New Issue
Block a user