人工退料
This commit is contained in:
@@ -109,8 +109,8 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button v-show="index4 === '1'" class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2 || !index4 || !index5 || !val3 || !currentData.material_code}" :disabled="disabled" @tap="_checkoutbillBackMaterial">确认</button>
|
||||
<button v-show="index4 !== '1'" class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2 || !index4 || !index5}" :disabled="disabled" @tap="_checkoutbillBackMaterial">确认</button>
|
||||
<button v-show="index4 === '1'" class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2 || !index4 || !index5 || !currentData.material_code}" :disabled="disabled" @tap="_checkoutbillBackMaterial">确认</button>
|
||||
<button v-show="index4 !== '1'" class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2 || !index4}" :disabled="disabled" @tap="_checkoutbillBackMaterial">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -183,7 +183,6 @@
|
||||
let res = await getMaterialSuppByVehicleCode(this.val2)
|
||||
if (res.code === '200') {
|
||||
this.currentData = res.data
|
||||
this.val3 = this.currentData.qty
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
@@ -196,12 +195,12 @@
|
||||
async _checkoutbillBackMaterial () {
|
||||
this.disabled = true
|
||||
if (this.index4 === '1') {
|
||||
if (!this.val1 || !this.val2 || !this.index4 || !this.index5 || !this.val3 || !this.currentData.material_code) {
|
||||
if (!this.val1 || !this.val2 || !this.index4 || !this.index5 || !this.currentData.material_code) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
} else {
|
||||
if (!this.val1 || !this.val2 || !this.index4 || !this.index5) {
|
||||
if (!this.val1 || !this.val2 || !this.index4) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user