人工退料
This commit is contained in:
@@ -78,7 +78,8 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2 || !index4 || !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 || !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}" :disabled="disabled" @tap="_checkoutbillBackMaterial">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -134,9 +135,16 @@
|
||||
},
|
||||
async _checkoutbillBackMaterial () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2 || !this.index4 || !this.val3 || !this.currentData.material_code) {
|
||||
this.disabled = false
|
||||
return
|
||||
if (this.index4 === '1') {
|
||||
if (!this.val1 || !this.val2 || !this.index4 || !this.val3 || !this.currentData.material_code) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
} else {
|
||||
if (!this.val1 || !this.val2 || !this.index4) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
}
|
||||
try {
|
||||
let res = await checkoutbillBackMaterial(this.val1, this.val2, this.index4, this.val3, this.currentData.material_code)
|
||||
|
||||
Reference in New Issue
Block a user