人工叫料

This commit is contained in:
2025-11-05 10:40:54 +08:00
parent 0bcbc2b449
commit e33d89d190
4 changed files with 104 additions and 7 deletions

View File

@@ -99,7 +99,7 @@
</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': !this.index || !this.index2 || !this.currentData.material_code || !this.index4}" :disabled="disabled" @tap="_checkoutbillcallMaterial">确认</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !this.index2 || !this.index4 || JSON.stringify(currentData) === '{}'}" :disabled="disabled" @tap="_checkoutbillcallMaterial">确认</button>
</view>
</view>
</template>
@@ -190,12 +190,12 @@
},
async _checkoutbillcallMaterial () {
this.disabled = true
if (!this.index || !this.index2 || !this.currentData.material_code || !this.index4) {
if (!this.index2 || !this.index4 || JSON.stringify(this.currentData) === '{}') {
this.disabled = false
return
}
try {
let res = await checkoutbillcallMaterial(this.index2, this.index, this.currentData.material_code, this.index4, this.currentData.supp_code, this.currentData.supp_name)
let res = await checkoutbillcallMaterial(this.index2, this.index4, this.currentData.storagevehicleext_id)
if (res.code === '200') {
uni.showToast({
title: res.message,