修改缺省

This commit is contained in:
18796357645 2025-07-19 11:59:22 +08:00
parent 7bdca483f6
commit 6d1a797fd3

View File

@ -544,8 +544,31 @@ export default {
operationData (type) {
if (type == "PRINT") {
//
if (!this.deviceName || this.deviceName.trim() === '') {
uni.showToast({
title: '请输入设备名称',
icon: 'none',
duration: 2000
});
return;
}
//
if (this.deviceDetail.status == 0 && this.deviceDetail.status != -1) {
this.sendWsCommand(type);
//
uni.showModal({
title: '确认打印',
content: '请确认门关闭并且设备处于可打印状态!',
confirmText: '确认执行',
cancelText: '取消',
success: (res) => {
if (res.confirm) {
//
this.sendWsCommand(type);
}
}
});
}
}
if (type == "CONTINUE") {