|
|
@ -196,10 +196,19 @@ |
|
|
|
// 重置 |
|
|
|
function reset() { |
|
|
|
if (form.value.id) { |
|
|
|
form.value.receiverType = ""; |
|
|
|
form.value.deviceNumber = ''; |
|
|
|
form.value.deviceName = ''; |
|
|
|
form.value.receiverUserId = ''; |
|
|
|
form.value = { |
|
|
|
receiverType: "", |
|
|
|
deviceNumber: '', |
|
|
|
deviceName: '', |
|
|
|
receiverUserId: '', |
|
|
|
status: 0, |
|
|
|
statusTxt: '设备', |
|
|
|
factoryAreaNumber: '', |
|
|
|
factoryAreaName: '', |
|
|
|
} |
|
|
|
form.value.receiverType = deviceMoldType.value[0].value |
|
|
|
form.value.receiverTypeTxt = deviceMoldType.value[0].label |
|
|
|
selecUserList.value = [] |
|
|
|
} else { |
|
|
|
form.value = { |
|
|
|
id: '', |
|
|
@ -208,9 +217,13 @@ |
|
|
|
deviceName: '', |
|
|
|
receiverUserId: '', |
|
|
|
status: 0, |
|
|
|
statusTxt: '', |
|
|
|
factoryAreaNumber: '' |
|
|
|
statusTxt: '设备', |
|
|
|
factoryAreaNumber: '', |
|
|
|
factoryAreaName: '', |
|
|
|
} |
|
|
|
form.value.receiverType = deviceMoldType.value[0].value |
|
|
|
form.value.receiverTypeTxt = deviceMoldType.value[0].label |
|
|
|
selecUserList.value = [] |
|
|
|
} |
|
|
|
} |
|
|
|
// 扫描设备条码 |
|
|
|