|
|
@ -123,6 +123,7 @@ |
|
|
|
const maintenanceShift = ref([]) |
|
|
|
const faultType = ref([]) |
|
|
|
const choosesingleColumnItem = ref() |
|
|
|
const msg = ref('') |
|
|
|
// 扫描设备条码 |
|
|
|
function chickRightButton(field) { |
|
|
|
if (!form.value.type) { |
|
|
@ -153,6 +154,7 @@ |
|
|
|
type: type.value |
|
|
|
}).then((res) => { |
|
|
|
if (!res.data) { |
|
|
|
msg.value = res.msg |
|
|
|
form.value.deviceName = '' |
|
|
|
form.value.factoryAreaName = '' |
|
|
|
form.value.factoryAreaNumber = '' |
|
|
@ -171,6 +173,7 @@ |
|
|
|
number: form.value.deviceNumber |
|
|
|
}).then(res => { |
|
|
|
if (!res.data) { |
|
|
|
msg.value = res.msg |
|
|
|
form.value.deviceName = '' |
|
|
|
form.value.factoryAreaName = '' |
|
|
|
form.value.factoryAreaNumber = '' |
|
|
@ -197,6 +200,10 @@ |
|
|
|
proxy.$modal.showToast(`请选择${type.value == 'DEVICE' || type.value == 'TECH' ? '设备' : '模具'}名称`) |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!form.value.deviceName) { |
|
|
|
proxy.$modal.showToast(msg.value) |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!form.value.factoryAreaName) { |
|
|
|
proxy.$modal.showToast('请输入区域') |
|
|
|
return; |
|
|
|