外协区空料架送回,外协区空笼框送回,物料转运,补空框

This commit is contained in:
2024-08-26 16:31:03 +08:00
parent 6b9756435b
commit e65d303e35
5 changed files with 195 additions and 39 deletions

View File

@@ -25,7 +25,7 @@
</view>
<view class="zd-row submit-bar">
<button class="zd-col-7 button-default" @tap="clearUp">清空</button>
<button class="zd-col-15 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_callEmptyVehicle">送回确认</button>
<button class="zd-col-15 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_handheldCageFrame">送回确认</button>
</view>
</view>
</template>
@@ -34,7 +34,7 @@
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import LinkScan from '@/components/LinkScan.vue'
import {getVehicleType, callEmptyVehicle} from '@/utils/getData2.js'
import {handheldCageFrame} from '@/utils/getData2.js'
export default {
components: {
NavBar,
@@ -56,22 +56,14 @@
getScanlist (e) {
this.val2 = e.join()
},
/** 载具类型下拉框 */
async _getVehicleType () {
let res = await getVehicleType()
this.options1 = [...res]
},
pickerChange (e) {
this.index1 = e.detail.value
},
async _callEmptyVehicle () {
async _handheldCageFrame () {
this.disabled = true
if (!this.val1) {
if (!this.val1 || !this.val2) {
this.disabled = false
return
}
try {
let res = await callEmptyVehicle(this.val1)
let res = await handheldCageFrame(this.val1, this.val2)
this.clearUp()
uni.showToast({
title: res.message,