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