This commit is contained in:
2025-09-18 16:49:05 +08:00
parent 66db2bd854
commit 3410732a36
3 changed files with 7 additions and 4 deletions

View File

@@ -113,6 +113,8 @@
},
onLoad (options) {
this.title = options.title
},
created () {
this._getIoDisDocumentInfo()
},
methods: {

View File

@@ -80,7 +80,7 @@
<view class="zd-row submit-bar">
<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 || !kcqty}" :disabled="disabled" @tap="_materialBoxOutConfirm">确认出库</button>
<button class="zd-col-9 button-primary" :class="{'button-info': !val1 || kcqty === ''}" :disabled="disabled" @tap="_materialBoxOutConfirm">确认出库</button>
</view>
</view>
</template>
@@ -133,7 +133,7 @@
},
async _materialBoxOutConfirm () {
this.disabled = true
if (!this.val1 || !this.kcqty) {
if (!this.val1 || this.kcqty === '') {
this.disabled = false
return
}

View File

@@ -127,10 +127,11 @@
async _getOutGroupInfo () {
try {
let res = await getOutGroupInfo(this.val1)
if (res && res.data.length > 0) {
if (res && res.data.data.length > 0) {
this.val2 = res.data.bom_code
this.val3 = res.data.device_code
this.dataList = [...res.data.data]
this.dataList = res.data.data
console.log(this.dataList, 666)
} else {
this.dataList = []
}