人工取货

This commit is contained in:
2026-01-15 16:08:58 +08:00
parent 212f453325
commit 22b49a6554

View File

@@ -22,7 +22,7 @@
<span class="filter_label">{{$t('filter.col')}}</span>
</view>
<view class="zd-col-24 filter_select">
<uni-data-select v-model="index" :localdata="options" placeholder="" @change="selectChange"></uni-data-select>
<input type="text" class="filter_input" v-model="val2" disabled>
</view>
</view>
</view>
@@ -76,7 +76,7 @@
<button class="zd-col-7 button-primary" :class="{'button-info': !val1 || !dataList.length}" :disabled="disabled" @tap="_cleanCol">清空列</button> -->
<button class="zd-col-8 button-default" :class="{'button-info': !val1}" :disabled="disabled2" @tap="_cleanPoint">{{$t('button.clear-point')}}</button>
<button class="zd-col-7 button-primary" @tap="searchList">{{$t('button.search')}}</button>
<button class="zd-col-7 button-primary" :class="{'button-info': !index}" :disabled="disabled" @tap="handleConfirm">{{$t('button.clear-col')}}</button>
<button class="zd-col-7 button-primary" :class="{'button-info': !val2}" :disabled="disabled" @tap="handleConfirm">{{$t('button.clear-col')}}</button>
</view>
</view>
</template>
@@ -95,8 +95,7 @@
return {
title: '',
val1: '',
options: [],
index: '',
val2: '',
dataList: [],
reload: false,
status: 'more',
@@ -120,20 +119,17 @@
try {
let res = await getColsByPoint(this.val1)
if (res) {
this.options = res.data
this.val2 = res.data.col
} else {
this.options =[]
this.val2 = ''
}
} catch (e) {
this.options = []
this.val2 = ''
}
},
selectChange (e) {
this.index = e
},
clearUp () {
this.val1 = ''
this.index = ''
this.val2 = ''
this.dataList = []
this.disabled = false
},
@@ -199,7 +195,7 @@
}
},
async handleConfirm() {
if (!this.index) {
if (!this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
@@ -210,12 +206,12 @@
async _cleanCol () {
this.disabled = true
try {
let res = await cleanCol(this.index)
let res = await cleanCol(this.val1, this.val2)
uni.showToast({
title: res.message,
icon: 'none'
})
this.index = ''
this.val2 = ''
this.dataList = []
this.disabled = false
} catch (e) {