拣选余料回库
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
try {
|
||||
let res = await getReturnMaterial(this.val1)
|
||||
if (res) {
|
||||
this.currentData = res
|
||||
this.currentData = res.data
|
||||
} else {
|
||||
this.currentData = {}
|
||||
}
|
||||
@@ -143,7 +143,7 @@
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await confirmReturnMaterial(this.currentData)
|
||||
let res = await confirmReturnMaterial(this.index, this.currentData)
|
||||
if (res.code === '200') {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
@@ -67,8 +67,8 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !code}" :disabled="disabled" @tap="_confirm('2')">强制确认</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !code}" :disabled="disabled" @tap="_confirm('1')">出库确认</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !this.currentData.group_id}" :disabled="disabled" @tap="_confirm('2')">强制确认</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !this.currentData.group_id}" :disabled="disabled" @tap="_confirm('1')">出库确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -119,7 +119,7 @@
|
||||
},
|
||||
async _confirm (type) {
|
||||
this.disabled = true
|
||||
if (!this.code) {
|
||||
if (!this.val1 || !this.currentData.group_id) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user