This commit is contained in:
2026-04-08 09:47:47 +08:00
parent 22a651d4b8
commit 8f7394c7dd
2 changed files with 4 additions and 25 deletions

View File

@@ -369,16 +369,6 @@
this.disabled = false
}
},
// async _printDelete (data) {
// try {
// let res = await printDelete(data)
// if (res) {
// // console.log('success')
// }
// } catch (e) {
// // console.log('error')
// }
// },
tolPrint() {
if (this.flag) {
this.dialogVisible = true

View File

@@ -74,9 +74,9 @@
</view>
<view class="zd-row submit-bar">
<!-- <button class="zd-col-5 button-default" @tap="toEmpty">清空</button> -->
<button class="zd-col-7 button-primary" :class="{'button-info': flag || !val1 || !weight || !pcsn || JSON.stringify(materialData) === '{}'}" :disabled="disabled" @tap="toZtPrint">组桶并打印</button>
<button class="zd-col-7 button-primary" :class="{'button-info': flag || !val1 || !weight || !pcsn || JSON.stringify(materialData) === '{}'}" :disabled="disabled" @tap="handleSubmit">确认组桶</button>
<button class="zd-col-7 button-primary" :class="{'button-info': !val1 || !weight || !pcsn || JSON.stringify(materialData) === '{}'}" :disabled="disabled1" @tap="tolPrint">标签打印</button>
<!-- <button class="zd-col-7 button-primary" :class="{'button-info': flag || !val1 || !weight || !pcsn || JSON.stringify(materialData) === '{}'}" :disabled="disabled" @tap="toZtPrint">组桶并打印</button> -->
<button class="zd-col-10 button-primary" :class="{'button-info': flag || !val1 || !weight || !pcsn || JSON.stringify(materialData) === '{}'}" :disabled="disabled" @tap="handleSubmit">确认组桶</button>
<button class="zd-col-10 button-primary" :class="{'button-info': !val1 || !weight || !pcsn || JSON.stringify(materialData) === '{}'}" :disabled="disabled1" @tap="tolPrint">标签打印</button>
</view>
<!-- 自定义弹窗 -->
<view v-if="dialogVisible" class="dialog-mask" @click="closeDialog" @touchmove.stop.prevent>
@@ -299,22 +299,12 @@
icon: 'none'
})
}
this.toEmpty()
this.val1 = ''
this.disabled = false
} catch (e) {
this.disabled = false
}
},
// async _printDelete (data) {
// try {
// let res = await printDelete(data)
// if (res) {
// // console.log('success')
// }
// } catch (e) {
// // console.log('error')
// }
// },
tolPrint() {
if (this.flag) {
this.dialogVisible = true
@@ -426,7 +416,6 @@
title: '操作成功',
icon: 'none'
})
this.toEmpty()
this.disabled1 = false
}
}