This commit is contained in:
2025-09-18 10:19:10 +08:00
parent 414db71188
commit e4a38f3f18
3 changed files with 21 additions and 5 deletions

View File

@@ -52,7 +52,7 @@
<span class="filter_label">库存数量</span> <span class="filter_label">库存数量</span>
</view> </view>
<view class="zd-col-16"> <view class="zd-col-16">
<input type="number" v-model="materialData.qty1" class="filter_input" disabled> <input type="number" v-model="kcqty" class="filter_input" disabled>
</view> </view>
<view class="zd-col-2"><span class="filter_unit">KG</span></view> <view class="zd-col-2"><span class="filter_unit">KG</span></view>
</view> </view>
@@ -86,6 +86,7 @@
return { return {
title: '', title: '',
val1: '', val1: '',
kcqty: '',
materialData: {}, materialData: {},
disabled: false disabled: false
}; };
@@ -111,6 +112,7 @@
}, },
async _getInvInfoQty () { async _getInvInfoQty () {
let res = await getInvInfoQty(this.val1) let res = await getInvInfoQty(this.val1)
this.kcqty = res.data.ivt_qty
this.materialData.qty1 = res.data.ivt_qty this.materialData.qty1 = res.data.ivt_qty
}, },
async _materialBoxInventoryConfirm () { async _materialBoxInventoryConfirm () {
@@ -127,6 +129,10 @@
icon: 'none' icon: 'none'
}) })
this.clearUp() this.clearUp()
this.$store.dispatch('setPublicObj', '')
uni.navigateTo({
url: '/pages/Material/dlx-pan-store?title=大料箱盘库'
})
} else { } else {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,

View File

@@ -52,7 +52,7 @@
<span class="filter_label">库存数量</span> <span class="filter_label">库存数量</span>
</view> </view>
<view class="zd-col-16"> <view class="zd-col-16">
<input type="number" v-model="materialData.qty1" class="filter_input" disabled> <input type="number" v-model="kcqty" class="filter_input" disabled>
</view> </view>
<view class="zd-col-2"><span class="filter_unit">KG</span></view> <view class="zd-col-2"><span class="filter_unit">KG</span></view>
</view> </view>
@@ -80,7 +80,7 @@
<view class="zd-row submit-bar"> <view class="zd-row submit-bar">
<button class="zd-col-5 button-default" @tap="clearUp">清空</button> <button class="zd-col-5 button-default" @tap="clearUp">清空</button>
<button class="zd-col-9 button-primary" :class="{'button-info': !val1}" :disabled="disabled1" @tap="labelPrint">标签打印</button> <button class="zd-col-9 button-primary" :class="{'button-info': !val1}" :disabled="disabled1" @tap="labelPrint">标签打印</button>
<button class="zd-col-9 button-primary" :class="{'button-info': !val1 || !val2 || !index}" :disabled="disabled" @tap="_materialBoxOutConfirm">确认出库</button> <button class="zd-col-9 button-primary" :class="{'button-info': !val1 && !kcqty}" :disabled="disabled" @tap="_materialBoxOutConfirm">确认出库</button>
</view> </view>
</view> </view>
</template> </template>
@@ -99,6 +99,7 @@
title: '', title: '',
val1: '', val1: '',
val2: '', val2: '',
kcqty: '',
materialData: {}, materialData: {},
// suppData: {}, // suppData: {},
disabled: false, disabled: false,
@@ -127,11 +128,12 @@
}, },
async _getInvInfoQty () { async _getInvInfoQty () {
let res = await getInvInfoQty(this.val1) let res = await getInvInfoQty(this.val1)
this.kcqty = res.data.ivt_qty
this.materialData.qty1 = res.data.ivt_qty this.materialData.qty1 = res.data.ivt_qty
}, },
async _materialBoxOutConfirm () { async _materialBoxOutConfirm () {
this.disabled = true this.disabled = true
if (!this.val1 || !this.val2) { if (!this.val1 || !this.kcqty) {
this.disabled = false this.disabled = false
return return
} }
@@ -143,6 +145,10 @@
icon: 'none' icon: 'none'
}) })
this.clearUp() this.clearUp()
this.$store.dispatch('setPublicObj', '')
uni.navigateTo({
url: '/pages/Material/dlx-out-store?title=大料箱出库'
})
} else { } else {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,

View File

@@ -167,7 +167,11 @@
icon: 'none' icon: 'none'
}) })
this.clearUp() this.clearUp()
uni.navigateBack() this.$store.dispatch('setPublicObj', '')
this.$store.dispatch('setpublicArr', '')
uni.navigateTo({
url: '/pages/Material/mater-in-store?title=物料入库'
})
} else { } else {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,