no message
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
return {
|
||||
userName: '',
|
||||
menuList: [
|
||||
{title: '物料入库转运', icon: 'RF03', path: '/pages/manage/mater-in-storage'},
|
||||
{title: '物料入库', icon: 'RF03', path: '/pages/manage/mater-in-storage'},
|
||||
{title: '外协区送回', icon: 'RF01', path: '/pages/manage/empty-tray-back'},
|
||||
// {title: '外协区空料架送回', icon: 'RF05', path: '/pages/manage/empty-material-racks-back'},
|
||||
// {title: '物料转运', icon: 'RF02', path: '/pages/manage/material-transfer'},
|
||||
|
||||
@@ -32,9 +32,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-4 button-default button-primary_s" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-9 button-primary button-primary_s" :class="{'button-info': !val1 || !val2 || !index}" :disabled="disabled" @tap="_handheldCageFrame('1')">空笼框送回确认</button>
|
||||
<button class="zd-col-9 button-primary button-primary_s" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_handheldCageFrame('2')">空料架送回确认</button>
|
||||
<button class="zd-col-8 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val2 || !index}" :disabled="disabled" @tap="_handheldCageFrame">送回确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -55,7 +54,7 @@
|
||||
title: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
options: [{ value: '1', text: '货架' }, { value: '2', text: '内部' }, { value: '3', text: '外协' }],
|
||||
options: [{ value: '1', text: '人工折弯区' }, { value: '2', text: '半自动折弯区' }, { value: '3', text: '内部加工区' }],
|
||||
index: '',
|
||||
disabled: false
|
||||
};
|
||||
@@ -67,22 +66,14 @@
|
||||
getScanlist (e) {
|
||||
this.val2 = e.join()
|
||||
},
|
||||
async _handheldCageFrame (type) {
|
||||
async _handheldCageFrame () {
|
||||
this.disabled = true
|
||||
if (type === '1' && (!this.val1 || !this.val2 || !this.index)) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
if (type === '2' && (!this.val1 || !this.val2)) {
|
||||
if (!this.val1 || !this.val2 || !this.index) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
if (type === '1') {
|
||||
let res = await handheldCageFrame(type, this.val1, this.val2, this.index)
|
||||
} else if (type === '2') {
|
||||
let res = await handheldCageFrame(type, this.val1, this.val2, '')
|
||||
}
|
||||
let res = await handheldCageFrame(this.index, this.val1, this.val2)
|
||||
this.clearUp()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
@@ -66,9 +66,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_handheldBlanking('1')">入库确认</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_handheldBlanking('2')">物料转运</button>
|
||||
<button class="zd-col-8 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_handheldBlanking">入库确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -122,7 +121,7 @@
|
||||
this.index1 = ''
|
||||
this.disabled = false
|
||||
},
|
||||
async _handheldBlanking (type) {
|
||||
async _handheldBlanking () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2) {
|
||||
this.disabled = false
|
||||
@@ -135,11 +134,7 @@
|
||||
}
|
||||
})
|
||||
try {
|
||||
if (type === '1') {
|
||||
let res = await handheldBlanking(type, this.val1, this.index, this.val2, arr, this.index1)
|
||||
} else if (type === '2') {
|
||||
let res = await handheldBlanking(type, this.val1, '', this.val2, '', '')
|
||||
}
|
||||
let res = await handheldBlanking(this.index1, this.val1, this.index, this.val2, arr)
|
||||
this.clearUp()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
Reference in New Issue
Block a user