收货入库

This commit is contained in:
2026-01-16 18:18:07 +08:00
parent 368c10c0ed
commit 626a9359e3
6 changed files with 48 additions and 37 deletions

View File

@@ -21,6 +21,7 @@
<view class="zd-col-24 filter_select">
<search-box
v-model="val1"
@handleChange="handleChange"
/>
</view>
</view>
@@ -76,8 +77,8 @@
</view>
<view class="zd-row submit-bar">
<!-- <button class="zd-col-5 button-default" @tap="toEmpty">清空</button> -->
<button class="zd-col-10 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_productionLine">呼叫agv</button>
<button class="zd-col-10 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_productionLine"></button>
<button class="zd-col-10 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_productionLine('1')">呼叫agv</button>
<button class="zd-col-10 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_productionLine('0')"></button>
</view>
</view>
</template>
@@ -98,7 +99,6 @@
val2: '',
num: null,
dataList: [],
// dataList: [{material_code: 'm001', qty: 100, checked: false, initialQty: 100}, {material_code: 'm002', qty: 200, checked: false, initialQty: 200}],
disabled: false
};
},
@@ -108,12 +108,19 @@
methods: {
toEmpty () {
this.val1 = ''
this.val2 = ''
this.num = null
this.dataList = []
this.disabled = false
},
selectChange (e) {
this.index = e
},
handleChange (e) {
if (e) {
this._getGroupBucketInfo()
}
},
async _getGroupBucketInfo () {
try {
let res = await getGroupBucketInfo(this.val1)
@@ -127,14 +134,14 @@
this.dataList = []
}
},
async _productionLine () {
async _productionLine (type) {
this.disabled = true
if (!this.val1 || !this.val2) {
this.disabled = false
return
}
try {
let res = await productionLine(this.val1, this.val2)
let res = await productionLine(this.val1, this.val2, type)
if (res) {
uni.showToast({
title: res.message,